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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet, Roy