Does anyone know the recipe for playing a sound.wav file in a script properly? Lastnight I created a melee script that works well except the sound. The enemy moves up to the player and checks distance. If the distance < 50 it plays the meelee animation, does damage and plays a sound. However, because the state is always true when the enemy is < 50 , the sound only plays the first milliseconds of the wave file constantly. It sounds like a "buzz" noise. I've tried timers, waiting for animation x to complete etc, to no avail. Anyone have any magic on how to construct this?
Lon
EDIT: I figured this out. I had the wrong path typed to my sound file
[url=http://www.chiselbrain.com]