Instructions/Move Away (Range): Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational addition)
 
Line 1: Line 1:
{{Instruction_Top}}
{{Instruction_Top}}
==== Description ====
==== Description ====
 
Moves the unit away from the target entity or coordinate. If a number is used, the unit will move away from the target and stop at the specified distance from the target.


==== Uses ====
==== Uses ====
When you want a unit to move away from a target.


 
Combined with [[Instructions/Move Unit|Move Unit]], you can maintain a distance from the target whether it moves toward or away.


==== Similar Instructions ====
==== Similar Instructions ====
 
[[Instructions/Move Unit|Move Unit]], [[Instructions/Move Unit (Async)|Move Unit (Async)]]


{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 19:00, 30 October 2023


Move Away (Range)
     
     Moves out of range of another unit, the number value of the target specifies the range
Lua ID moveaway_range
Category Move
Icon Move To.png
Argument One: Type Input
Argument One: Name Target
Argument One: Description Unit to move away from
Argument One: Data Type entity


Description[edit | edit source]

Moves the unit away from the target entity or coordinate. If a number is used, the unit will move away from the target and stop at the specified distance from the target.

Uses[edit | edit source]

When you want a unit to move away from a target.

Combined with Move Unit, you can maintain a distance from the target whether it moves toward or away.

Similar Instructions[edit | edit source]

Move Unit, Move Unit (Async)