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 / Spawning 2 items with 1 trigger zone

Author
Message
Lucidx
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 25th Jul 2009 01:58
I'm making a paranormal investigation video game and at a certian point in the game, the piano in the other room starts playing and then I need TWO items to spawn in the other room but unfortunately I only know how to make 1 items spawn per trigger zone.

How do I remedy this situation?

Lucidx
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 25th Jul 2009 03:03
Give both items the same name and they will both spawn.

Lucidx
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 25th Jul 2009 03:14
Thanks!

Lucidx
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 25th Jul 2009 03:34 Edited at: 25th Jul 2009 03:35
Or settargetname=x then activatetarget=1

then settargetname=y then activatetarget=1 again

like so..

...


:state=4:settargetname=zombie001,state=5

:state=5:activatetarget=1,state=6

:state=6:settargetname=barbara,state=7

:state=7:activatetarget=69,hudshow=cut2run,hudfadeout=cut2run,state=8

:state=8:destroy

... only I am doing something other than spawing her in this example.
If that 69 were a 1 though, then she would spawn.

shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 26th Jul 2009 16:47
or... you could just make two trigger zones and put them in the same place.

Coming soon: what lies beneath.
check out the official thread: http://forum.thegamecreators.com/?m=forum_view&t=153893&b=25

Login to post a reply

Server time is: 2024-11-25 05:41:39
Your offset time is: 2024-11-25 05:41:39