mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #4759 from ericrius1/dice
changed dice script to only play sound locally on collision, to avoid ev...
This commit is contained in:
commit
6312d8643b
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue