I am trying to trigger a zone just by walking into the trigger. (A trigger in the zone I want to activate.) I am using a radius trigger because I wasn't getting results with a multiple trigger.
I've been at this for a couple days now, and have tried many things. I thought this last try was it but I can't seem to trigger the spawns in the new zone without using a zombie_door/magic_door that you have to buy. I am using something like this;
homenow(){ home = getEnt("homezone","targetname"); home waittill("trigger"); flag_set("enter_home_zone"); home delete(); } }
I have also tried putting the add adjacent zone code after the flag set. The code seems to work when I test with an iprintln either way, but it isn't activating the zombie spawns. Am I on the right track? Am I missing something else?
I am trying to trigger a zone just by walking into the trigger. (A trigger in the zone I want to activate.) I am using a radius trigger because I wasn't getting results with a multiple trigger.
I've been at this for a couple days now, and have tried many things. I thought this last try was it but I can't seem to trigger the spawns in the new zone without using a zombie_door/magic_door that you have to buy. I am using something like this;
homenow(){ home = getEnt("homezone","targetname"); home waittill("trigger"); flag_set("enter_home_zone"); home delete(); } }
I have also tried putting the add adjacent zone code after the flag set. The code seems to work when I test with an iprintln either way, but it isn't activating the zombie spawns. Am I on the right track? Am I missing something else?
Got this from Yaphil on another site... I think it's what you need.
You need to make a custom script that allows trigger_multiple to have a script_flag so that you can use that to activate zones.
The Zone needs to be set up just like any zone you would activate with a debris. The trigger_multiple has targetname = flag_trigger and script_flag = whatever your zone needs it to be.
The Zone needs to be set up just like any zone you would activate with a debris. The trigger_multiple has targetname = flag_trigger and script_flag = whatever your zone needs it to be.
This will be awesome for multiple triggers. I have another map idea where this will be super useful. Thanks.
you just have to check if the player is touching then set the flag
Code Snippet
Plaintext
trig waittill("trigger"); set_flag(enter_zone1);
you dont need to initiate the flag as it will be initiated by the zone manager. i have activated zones like this and it works
Okay, so it was okay for the most part. I got rid of the extra stuff like you showed. I had 9 zones and was activating this 10th one and guess I didn't test long enough. They seemed to only be spawning in the old zones. I added two more zones in between the 9 and 10 and increased the number of spawners and now I can see it is working. Thanks.
Anyways, I'll reply here when I have got time to test it. Thanks in the meantime .
no, the flag gets initialized in the adjacent zone set up, you just need to set the flag whenever you want. also if you initialize the flag in your script and then set it it wont do anything so just make your zones the way they are supposed to and the you can play with their flags xD