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 Product Chat / Spawn a trigger zone

Author
Message
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 17th Jun 2011 21:33
Is it possible to spawn a trigger zone after killing an enemy?
Pirate Myke
16
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 18th Jun 2011 03:46
settargetname=
activatetarget=
activated=

You would need to script it but it is possible. one script for the trigger zone.

One script for the entity triggering the trigger zone.

Nothing but coffee in my veins 'Insomnia is Coming'
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 18th Jun 2011 15:48
I don't think that is what he meant. He means actually spawning the zone, which is impossible.


Cheers.

God help me, Please.

Come on down to my site at Unleashed FPSCreators
Ched80
15
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 19th Jun 2011 17:49
Beastmode is correct, you cannot spawn a trigger zone.

You can engineer a work-around using variables.

Create a global variable called "EnemyDead" or something similar.
When the enemy dies, set the "EnemyDead" variable to 1.
In the tigger zone script use "varequal=" or "vargreater=" to prevent the trigger zone from doing anything until EnemyDead>=1.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Pirate Myke
16
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 19th Jun 2011 17:51 Edited at: 19th Jun 2011 17:53
I will post my scripts and a test map for this a bit later. I spawn them all the time for 'Insomnia is Coming'. It does work. I spawn trigger zones and Win Zones. I dont use variable. I use what I posted above.

Nothing but coffee in my veins 'Insomnia is Coming'
Ched80
15
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 19th Jun 2011 17:52
@Pirate Myke, do you modify the Trigger Zone fpe file?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Pirate Myke
16
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 19th Jun 2011 19:01 Edited at: 19th Jun 2011 19:01
Here it is in the down load button.

Run the test map and go to the grey square on the right first.
Notice the health pack not being spawned.

Go and walk thru the other grey square then go back to the first one and you will see the health pack spawn from that trigger zone.

I am sure varable can be used also.
The scripts are modofied

Nothing but coffee in my veins 'Insomnia is Coming'
Pirate Myke
16
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 19th Jun 2011 19:23 Edited at: 19th Jun 2011 19:27
@Troutflies

I have done this with characters also. But I do all custom stuff for the project i am in.

In your main ai script for you character. Apply the last line of code below.



I used this to spawn a 3 x 3 segement winzon in a 3 x 3 room. I had collected all objects prior to transporting into this room. But I wanted the player to be killed by this character befor the win zone did its thing. So as the character kills the player. the character main ai last line calls the code to spawn the win zone and advance to the next level.

Hope this helps. I had to play with it for a while, but when I got it it was what the client needed.

In your case I would probably try it in a destroy script of your character. Post more details to your scenario and I can help if you need.

Nothing but coffee in my veins 'Insomnia is Coming'

Login to post a reply

Server time is: 2026-06-30 21:08:26
Your offset time is: 2026-06-30 21:08:26