content/hifi-content/wadewatts/newgate6.js
2022-02-14 02:04:11 +01:00

21 lines
643 B
JavaScript

(function() {
var SOUND_URL = 'https://hifi-content.s3.amazonaws.com/wadewatts/Ring2.wav?v=' + Date.now();
var entityID;
var sound;
return {
preload: function(id) {
entityID = id;
sound = SoundCache.getSound(SOUND_URL);
},
enterEntity: function(id) {
print('Working');
var position = Entities.getEntityProperties(entityID, 'position').position;
var audioProperties = {
volume: 0.1,
position: position
};
Audio.playSound(sound, audioProperties);
}
};
})