Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Sounds in a script

Author
Message
Lon
16
Years of Service
User Offline
Joined: 12th Feb 2004
Location: Big Ass Castle
Posted: 24th Jan 2006 15:51 Edited at: 25th Jan 2006 05:38
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]

Login to post a reply

Server time is: 2020-02-26 07:59:23
Your offset time is: 2020-02-26 07:59:23