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.
;Artificial Intelligence Script
;Header
desc = Plr In Zone, activate entity specified in IF USED
;Triggers
:state=0,activated=67,plrwithinzone=1:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:state=0
;End script
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.
;Artificial Intelligence Script
;Activate TriggerZone When Weapon Is Picked Up
desc = Weapon Pickup Activate Trigger
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:state=2,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
:state=2:settargetname=tzone1,state=3
:state=3:activatetarget=67,state=4
;End of Script
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.