ok so it might sound like an easy thing to solve but I've tried lots of different things with no succes :(
I have a map in which P1 has to defend against P2.
P2 gets an infinite (respawning) army, and I'd like to do a trigger where if ANY unit from P2 gets into a particular region, then a unit is warped in for P1. I'd like that (the warp in) to happen only once.
so far, I managed to get everything right (when unit gets in zone, warp in the right unit at the right place), except that the triggers works EVERY TIME a unit owned by P2 gets in the zone so I end up with tons of units when I wanted only one.
I tried creating a variable that I set to 1, then by using a comparison (if "Var = 1 then warp, else do nothing" and of course I added +1 to Var when warping in my unit) but it didn't work, and tbh, I don't think it's the way to go anyways.
how can I solve it?
thanks in advance.
side question :
when I try to warp in immortals, they just appear and they don't have that warping animation zealots/sentries/stalkers/dt/ht have, I'd like to have something similar to that:
how do I do that?
ok so it might sound like an easy thing to solve but I've tried lots of different things with no succes :( I have a map in which P1 has to defend against P2. P2 gets an infinite (respawning) army, and I'd like to do a trigger where if ANY unit from P2 gets into a particular region, then a unit is warped in for P1. I'd like that (the warp in) to happen only once.
so far, I managed to get everything right (when unit gets in zone, warp in the right unit at the right place), except that the triggers works EVERY TIME a unit owned by P2 gets in the zone so I end up with tons of units when I wanted only one. I tried creating a variable that I set to 1, then by using a comparison (if "Var = 1 then warp, else do nothing" and of course I added +1 to Var when warping in my unit) but it didn't work, and tbh, I don't think it's the way to go anyways.
how can I solve it? thanks in advance.
side question : when I try to warp in immortals, they just appear and they don't have that warping animation zealots/sentries/stalkers/dt/ht have, I'd like to have something similar to that: how do I do that?
On the trigger, you can just turn current trigger off. So the trigger only will be activated once. Search Actors.
@Tekaichi: Go
nevermind, it works. it's not under actors but under trigger though :)
thanks!
Whats the event? Unit Enters region?