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.
[06:23 am]
Ultraviolet -- got some light recalls behind too
[12:07 am]
O)FaRTy1billion[MM] -- 🦗
[09:53 pm]
Wing Zero -- I wonder how he knew I was in the market for a good cricket bat
[2024-6-11. : 2:27 pm]
lil-Inferno -- ya
[2024-6-11. : 10:49 am]
Oh_Man -- or scarab maybeh
[2024-6-11. : 10:49 am]
Oh_Man -- shielt battery + photon cannon blast?
[2024-6-11. : 10:49 am]
Oh_Man -- check out the animation at 7:56
[2024-6-11. : 9:06 am]
Oh_Man -- https://youtu.be/3mpjxspSUtQ I defeated the hell boss yall, bow to my power
[2024-6-10. : 5:04 pm]
lil-Inferno -- poop
[2024-6-06. : 5:20 pm]
Ultraviolet -- I was kinda thinking something along these lines
Please log in to shout.


Members Online: Roy, perspective, moataz