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 / trigger zone trigger another trigger zone

Author
Message
SAK
15
Years of Service
User Offline
Joined: 16th Nov 2009
Location:
Posted: 6th Jun 2010 10:15
I try to do what PW Productions searching for,but it is not work.Conjured Entertainment explain how,but can someone tell me step by step(for example what i must put on Start in Trigger zone).I see PW Productions succeeded,but how,i try many thing and it IS NOT WORK. PLEASE SOMEONE HELP ME

Studio
SAK
15
Years of Service
User Offline
Joined: 16th Nov 2009
Location:
Posted: 6th Jun 2010 10:44
How to make Trigger zone not spawn at start???

Studio
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 7th Jun 2010 22:37 Edited at: 7th Jun 2010 22:50
Quote: "I try to do what PW Productions searching for,but it is not work.Conjured Entertainment explain how,but can someone tell me step by step(for example what i must put on Start in Trigger zone).I see PW Productions succeeded,but how,i try many thing and it IS NOT WORK. PLEASE SOMEONE HELP ME "


Quote: "How to make Trigger zone not spawn at start???"


The trigger Zone always spawns at the start.
It is the entity that you want to not spawn at start.

Here is a step by step using the two scripts from the other thread.

1) Place a Trigger Zone in your map and rename it to tzone1

2) Now change its AIMAIN to use the modified plrinzoneactivateused.fpi that I provided in that thread.


3) Place an enemy in your map and set its properties to spawn. (spawn at start = no, etc.)

4) Set the name of the enemy in the IFUSED section of the trigger zone's properties.

5) Place a weapon in your map and then give it the modified weapon.fpi script from that thread for its AIMAIN.


So, the enemy is being set up to be spawned by the trigger zone as usual in the same way. (enemy name in the ifused of the trigger zone)

It is the trigger zone that has had an extra condition added to it.
We added activated=67 right before the plrwithinzone.
So, the trigger zone does nothing at the start because it has not been activated by anthing yet.

The weapon pick up now activates the triggerzone (the trigger must be named tzone1 to work) because we set the trigger zone as a target then activated it to 67.
The weapon sets the trigger zone's activated state to 67, which in turn allows the trigger zone's extra condition to now be met and then spawn the enemy.
So, the trigger zone will not spawn the enemy until the player has picked up the weapon.

Again, we used a weapon to activate the triggerzone, but that could have been anything (like another trigger zone) that set the target name and then activated the target.
Any entity or trigger zone can do this, just remember to have the names match because a typo can render it useless.

   Conjured Entertainment

 WARNING: Intense Madness
SAK
15
Years of Service
User Offline
Joined: 16th Nov 2009
Location:
Posted: 8th Jun 2010 01:18
It work!!!Thank you Conjured Entertainment .You explain everything how i want. THANK YOU VERY MUCH

Studio

Login to post a reply

Server time is: 2024-11-24 23:23:53
Your offset time is: 2024-11-24 23:23:53