I'm working on a weapon which will use a few different sounds to indicate its state(s), but I can't figure out how the playSound() function works. My questions are as follows: Is it only a function within the animator table? If not, are there any more useful places to call it from? Where does this function retrieve its sounds from? What format should they be in?
answer no 1: it is also a part of the tech object but it works the same way it works for the animator table answer no 2: It pulls off the sound from your .animator file, if you would want to play a sound you would have to use this: Code: Lua: animator.playSound("soundname"); .Animator File: { "sounds" : { "activate" : [ "path to sound file eg: /sfx/tech/tech_blink1.ogg" ] } }