Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Units Stay in Lcation Layer
Report, edit, etc...Posted by flipmonkey on 2006-01-25 at 16:34:57
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.
Report, edit, etc...Posted by KABOOM on 2006-01-25 at 16:43:40
ok well i'm thinkin make a trigger say brings at most 0 (unit) to location then move it back but make sure its the only unit of itself on the map or make another location alittle bigger then the one u have now so u can just move it from that location biggrin.gif
Report, edit, etc...Posted by rockz on 2006-01-25 at 17:16:02
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.

Report, edit, etc...Posted by joker2kill on 2006-01-25 at 18:12:23
we'll you could always make 4 locations around the location so when you step foot into one of them you get transported back to the middle one wink.gif
Report, edit, etc...Posted by LegacyWeapon on 2006-01-25 at 18:13:39
We have tutorials for everything!
http://www.staredit.net/index.php?tutorial=126

See the third one.
Next Page (1)