Instructions/Move Unit: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational addition)
Line 2: Line 2:


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


==== Uses ====
==== Uses ====
When you want a unit to move towards a target.


 
When you want a unit to move towards a target, but stop several tiles short or "follow at a distance".


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


{{Instruction_Bottom}}
{{Instruction_Bottom}}

Revision as of 18:56, 30 October 2023


Move Unit
     
     Moves to another unit or within a range of another unit
Lua ID domove
Category Move
Icon Move To.png
Argument One: Type Input
Argument One: Name Target
Argument One: Description Unit to move to, the number specifies the range in which to be in
Argument One: Data Type entity



Description

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

Uses

When you want a unit to move towards a target.

When you want a unit to move towards a target, but stop several tiles short or "follow at a distance".

Similar Instructions

Move Away (Range), Move Unit (Async)