Tune sound down

This commit is contained in:
Atlante45 2015-03-23 17:55:23 +01:00
parent fdfdba5d2d
commit ea0f3f05e7

View file

@ -39,7 +39,10 @@
// Play switch sound
this.playSound = function() {
if (this.sound && this.sound.downloaded) {
Audio.playSound(this.sound, { position: Entities.getEntityProperties(this.entityID).position });
Audio.playSound(this.sound, {
position: Entities.getEntityProperties(this.entityID).position,
volume: 0.2
});
} else {
print("Warning: Couldn't play sound.");
}