QUOTE(flipmonkey @ Jan 25 2006, 04:34 PM)
Well since nobody answered my other topic, it seems like you didnt understand LOL. Well im trying to get a trigger were a unit must stay inside a location layer and if it walks out of that layer it get moved or teleported back to the center of that location layer. This location is also centered on a unit (civilan) which moves around the entire map. I dont no how this trigger is set up.
I know how to center the location on ths unit and thats already been done. I just dont no how to set up this other trigger with the civilian centered and other units staying inside that location layer.
Some one reply to this i have to go. Still in school and i have tennis tryouts lol later.
[right][snapback]412824[/snapback][/right]
Owner:
Either the Force or the Player you play.
Conditions:
Current Player brings exactly 0 unit to 'stay inside location'.
Actions:
Move 1 unit owned by Current Player from 'Anywhere' to 'stay inside location'.
Preserve Trigger.
Owner:
Whoever controls the Civilian.
Conditions:
Always.
Actions:
Center Location labeled 'stay inside location' on 'Civilian' owned by Current Player.
Preserve Trigger.
The first trigger will recognize when you don't bring one particular unit to the vicinity of the civilian, and then move the unit back next to the civilian.
The second trigger will always center the location around the civilian owned by whichever player owns it.
If you don't understand something about this trigger, feel free to ask and I'll try to explain it clearer.
Also, you might want to use
Hyper Triggers or if you are really interested in it, read up on
why hyper triggers work.