content/hifi-content/elisalj/emoji_scripts/updated-2-emoji-tablet/behaviors/monster_growl.js
2022-02-13 23:16:46 +01:00

34 lines
816 B
JavaScript

//
// monster_growl.js
// A little angry monster
// Attach to an entity
//
// Author: Elisa Lupin-Jimenez
// Copyright High Fidelity 2017
//
// Licensed under the Apache 2.0 License
// See accompanying license file or http://apache.org/
//
// All assets are under CC Attribution Non-Commerical
// http://creativecommons.org/licenses/
//
(function () {
var GROWL_URL = Script.resolvePath("./sounds/monster-growl.wav");
var GROWL = SoundCache.getSound(Script.resolvePath(GROWL_URL));
var _entityID;
var properties = Entities.getEntityProperties(_entityID);
var SOUND_VOLUME = 0.5;
Audio.playSound(GROWL, {
position: properties.position,
volume: SOUND_VOLUME
});
this.unload = function() {
/* nothing here */
};
});