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:41 pm]
Ultraviolet -- just sent you a message on Discord. I suspect you're probably trying to change unit speeds for units that don't use flingy.dat for movement (like any units that walk instead of hovering/flying). You can change their movement to flingy, but they unfortunately look more like they're gliding than walking when you do that.
[07:31 pm]
Symmetry -- EE2, I've been using setdatfile successfully for units.dat and weapons.dat but the flingy changes don't seem to happen
[05:25 pm]
Ultraviolet -- in EE2 you just open DatEdit, go to the flingy tab, and make whatever changes you want. Though if you want to do dynamic shit, you have to use the trigger editor with the setdatfile action. And of course you have to inject your changes when done. Can give more specific troubleshooting advice if you provide more details
[05:20 pm]
Ultraviolet -- Symmetry
Symmetry shouted: why can't I seem to make eud editor change flingy.dat D:
Are you using EE2 or EE3?
[04:57 pm]
Symmetry -- wdym
[02:24 pm]
Apos -- :wob:
[04:16 am]
NudeRaider -- files in c:\program files\ are protected
[2026-7-11. : 8:11 pm]
Symmetry -- why can't I seem to make eud editor change flingy.dat D:
[2026-7-11. : 4:33 pm]
Ultraviolet -- :wob:
[2026-7-10. : 11:00 pm]
Vrael -- :wob:
Please log in to shout.


Members Online: DarkenedFantasies