Difference between revisions of "commandMove"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 23: Line 23:
 
|x1= <code>_soldier1 [[commandMove]] ([[getMarkerPos]] "Marker1") </code>
 
|x1= <code>_soldier1 [[commandMove]] ([[getMarkerPos]] "Marker1") </code>
  
|mp= This command is only effective when used on local units. When used on a remote unit, this command will create radio dialogue on the machine the unit is local to, but the unit will not move.
+
|mp= When used on a remote unit, this command will create radio message on the remote machine but if the unit is not local to the machine on which command is executed, the unit will not move.
  
 
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]]
 
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]]

Revision as of 00:22, 4 February 2021

Hover & click on the images for descriptions

Description

Description:
Order the given unit(s) to move to the given location (via the radio). Exactly the same as doMove, except this command displays a radio message.
Multiplayer:
When used on a remote unit, this command will create radio message on the remote machine but if the unit is not local to the machine on which command is executed, the unit will not move.

Syntax

Syntax:
unitName commandMove position
Parameters:
unitName: Object or Array
position: Array - format Position
Return Value:
Nothing

Examples

Example 1:
_soldier1 commandMove (getMarkerPos "Marker1")

Additional Information

See also:
doMovesetDestinationmoveTomoveaddWaypoint
Groups:
Groups

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note