Staredit Network

Staredit Network -> UMS Assistance -> A question about units
Report, edit, etc...Posted by codewind on 2006-08-30 at 09:13:01
This is a hard question to explain but if u ever played battle for raccoon city and got the mini gun u no what i mean. I basicly wont to no how i can make a uint follow another unit useing triggers. Its kinda like a teleaport were if the main unit moves the 2nd one follows it useing some trigger plz help.
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-08-30 at 09:21:04
Always:
Center Location "Location" on "Unit" owned by "Player"
Order "Other Unit" owned by "Other Player:" Move to "Location"
Preserve Trigger

That should be it.
Report, edit, etc...Posted by codewind on 2006-08-30 at 09:22:37
thanks
Report, edit, etc...Posted by JaFF on 2006-08-30 at 09:25:08
1) Try to use normal english.
2) If you want it to teleport, do this:

Players:
What player you need
Conditions:
Always
Actions:
Center location X on "Target unit" at Anywhere
Move "Following unit" to location X.
Preserve trigger.


I didn't specify some things in the second action (move) because they depend on your situation.
Report, edit, etc...Posted by Kyuubi. on 2006-08-30 at 11:28:04
if it's hypered, the always condition will make it stuck on the unit its following unable to do anything else besides moving. instead use the bring condition.

[Conditions]
-Always

[Conditions]
-Move Location on unit(thats supposed to be followed)
-Preserve trigger


[Conditions]
-Current Player brings exactly 0 of unit at location(thats following)

[Actions]
-Order issue move the unit at anywhere to location
-Preserve Trigger

it will be able to do other things while in the location, but will order it to move when its out of it.
Next Page (1)