i'm trying to implement some sort of zone control trigger set.
here's my pseudo-code atm:
1) a unit enters a region x
2) set timer
3) set last_entered_player[x] to Triggering Player
4) when timer expires, if there are units owned by player last_entered_player[x] in region create a unit in region x
so far so good.
what i'm having trouble, though, is checking if a unit controlled by any other player is in the zone.
anybody have any insight on how to accomplish this?
or maybe a whole different approach that avoids the issue?
0
@Myndful: Go
sweet. that's a really great idea. i'll look into that.
thanks!
0
@goofoffjw: Go
interesting i didn't know sc2 editor had such a feature. will try it when i get home. thanks!
0
hi,
i'm trying to implement some sort of zone control trigger set. here's my pseudo-code atm:
1) a unit enters a region x 2) set timer 3) set last_entered_player[x] to Triggering Player 4) when timer expires, if there are units owned by player last_entered_player[x] in region create a unit in region x
so far so good. what i'm having trouble, though, is checking if a unit controlled by any other player is in the zone. anybody have any insight on how to accomplish this? or maybe a whole different approach that avoids the issue?
thanks!
0
thank you very much for the awesome tutorial!