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 / Entity spawn after delay/sound

Author
Message
Caedus
12
Years of Service
User Offline
Joined: 23rd Jun 2012
Location:
Posted: 24th Jun 2012 14:15
Hey,

I need to have 2 entities (key + weapon) spawn after a soundfile is played or after a delay. I already checked the threads about this topic but didn't find anything that works.
I tried to set a trigger zone with the mainscript "plrinzoneactivateused.fpi" and the "Key1" in "If Used"-box.
In the entity-options of the key I set the
name to "Key1",
"Spawn at Start?" to "No",
"Max at any time" to "1",
"maximum spawn" to "1",
"spawn after delay?" to "yes" and
"Delay" to 10000

Can anyone please help me?

Thanks in advance!!!
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 27th Jun 2012 04:50
HI Caedus Try changing the time to activate "IfUsed" trigger.
Keep your two entities same name "key1"(key+weapon)
spawn at start,no
max spawn,1
Leave everything else default.Now for your trigger try this.

Follow the script how it runs,adjust time to your needs.
Add a sound file to play in your trigger if needed.
Also,this is a good place to start learning scripts
http://forum.thegamecreators.com/?m=forum_view&t=170978&b=21&msg=2025564#m2025564

Login to post a reply

Server time is: 2024-11-24 00:35:53
Your offset time is: 2024-11-24 00:35:53