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 / I am trying to get two sounds to play when an enemy dies can't get the script right.

Author
Message
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 2nd May 2012 09:08
I a m tryin gto get two audio files to play when the player shoots and kills the enemy. I have messed around with this code trying to get it to work for a few hours now. I can get it to play the first audio, which is "enemy down". But I can't seem to get the second one to work.
I thought I could use the timerstart and timergreater to create the delay between the fist audio file and the second which is "moving out" can you help me out. Ive tried searching it out but can't seem to find what I am looking for.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 2nd May 2012 14:39
you have to change state after the line the sound should play, if not the sound isnt played. so simply add a ",state=6" after plrsound and ":state=6:none" or something like that in the next line.

Login to post a reply

Server time is: 2024-11-24 00:03:06
Your offset time is: 2024-11-24 00:03:06