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 / Item Spawning

Author
Message
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 21st Jan 2008 22:37
Is it possible to make an item (such as a key) spawn once a sound has finished playing? Or if not then maybe after a delay (I don't understand how the delay function works, I can't get it working :S)

Thanks

Marc
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Jan 2008 12:06
You can make a delay by using the timer commands.

I think what you could do is set up the key to spawn upon activation, then have your script play a sound, start the timer, wait until it reaches your delay point, and then activate the key entity to make it spawn!

Something like this could work:



That will play a sound, then wait a certain amount of time (preferably the length of time it takes to play the sound) before activating the "If Used" entity (Which should be the name of your key if you set up the prperties right)


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!

Login to post a reply

Server time is: 2024-11-24 03:55:07
Your offset time is: 2024-11-24 03:55:07