From d930c942ff9ed1f33dc234ec33b1d41249dd5529 Mon Sep 17 00:00:00 2001 From: Eric Levin Date: Mon, 4 May 2015 10:16:50 -0700 Subject: [PATCH] changed dice script to only play sound locally on collision, to avoid every client which sees collision injecting audio and creating that overloud effect --- examples/dice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dice.js b/examples/dice.js index b118a6b289..553a233a25 100644 --- a/examples/dice.js +++ b/examples/dice.js @@ -94,7 +94,7 @@ function entityCollisionWithEntity(entity1, entity2, collision) { } if ((entity1.id == dice[i].id) || (entity2.id == dice[i].id)) { madeSound = true; - Audio.playSound(rollSound, { position: collision.contactPoint }); + Audio.playSound(rollSound, { position: collision.contactPoint, localOnly: true }); } }