Okay so I have a small dilemma of not knowing how to do this.
What I am trying to do is to create many safe zones in my map, for certain unit types.
Both of these are already in arrays. I have 6 Safe Zones (Array1[5]) and 16 certain unit types (Array2[15]) I'd like to be kept inside these safe zones. If they leave, they would die. How would I go about it?
Event:
Any unit leaves region Array1[0]
Conditions:
unit (triggering unit) type = Array2[0]
unit (triggering unit) type = Array2[1]
Actions:
Kill triggering unit
Okay so I have a small dilemma of not knowing how to do this.
What I am trying to do is to create many safe zones in my map, for certain unit types.
Both of these are already in arrays. I have 6 Safe Zones (Array1[5]) and 16 certain unit types (Array2[15]) I'd like to be kept inside these safe zones. If they leave, they would die. How would I go about it?
Try something like this
Event:
Any unit leaves region Array1[0]
Conditions:
unit (triggering unit) type = Array2[0]
unit (triggering unit) type = Array2[1]
Actions:
Kill triggering unit
@DarkForce9999: Go
Create a new trigger.
Thanks guys.
So there's no easy way of making the game check for all unit types and all region all at once? Cause I have a messy trigger that actually works.
@DarkForce9999: Go
I don't think so. You could make your own action definitions if you want to split up the trigger a bit.