Staredit Network > Forums > SC2 Assistance > Topic: Let a unit follow another unit
Let a unit follow another unit
Nov 16 2010, 1:54 pm
By: Devourer  

Nov 16 2010, 1:54 pm Devourer Post #1

Hello

I want a unit to follow another unit via a trigger, the thing is that I want this action to be executed only once, thus one order to let the unit follow another unit until it (or the other one) dies or it becomes impossible for the unit to follow, simply just like as if you would do a rightclick on a unit of yours with an other unit. Info: both are ground units and there is like no way unit one can escape the terrain where unit two is in.



Please report errors in the Staredit.Network forum.

Nov 16 2010, 3:36 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

modify move order's distance in data editor (or copy it and set it to 0) and try to get the move order onto the unit. I'm not sure if that is possible atm.




Nov 16 2010, 4:24 pm Roy Post #3

An artist's depiction of an Extended Unit Death

Don't make it harder than it has to be...

Follow
    Events
        Game - Map initialization
    Local Variables
        UNIT_TWO = Marine [25.41, 95.39] <Unit>
        UNIT_ONE = Ghost [22.95, 95.26] <Unit>
    Conditions
    Actions
        Unit - Order UNIT_ONE to ( Move targeting UNIT_TWO) (Replace Existing Orders)




Nov 16 2010, 4:27 pm Devourer Post #4

Hello

You mean order targeting unit? Returning an error that "Move(0) needs a target."



Please report errors in the Staredit.Network forum.

Nov 16 2010, 4:35 pm Roy Post #5

An artist's depiction of an Extended Unit Death

Then you are doing something wrong, i.e. assigning a unit that doesn't exist.




Nov 16 2010, 8:02 pm payne Post #6

:payne:

I think having Conditions that detects if both units are alive would be smart, btw. ;)



None.

Dec 1 2010, 3:11 am doite Post #7



Hmm i think that sounds buggy...
What if unit drops follow, due to some zergling action or.. i dont know, like in my new map (just started) GTA they drop when i "almost" drive over them.. Anywhoo... I would create a region thats attacked to the region. And if unit LEAVES region.. that is the following unit, he gets the action again (to follow center of region) And if you would like to follow the unit, but alittle from a certain vertical or horizontal axle you could just move the offset or whatever of the region that is attached =)
GL HF (Im not a big fan of explaining with pictures and script, i do expect ppl to understand when doing something as complex as creating something, and not just playing it) -> Else tutorials tutorials and tutarials



None.

Dec 1 2010, 3:13 am doite Post #8



"gion thats attacked to the region."
What i ment was region attached to the unit that is suppose to BE followed



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: C(a)HeK