doMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:
|p1= unit(s): [[Object]] or [[Array]] |= Parameter 1
|p1= unit(s): [[Object]] or [[Array]] |= Parameter 1


|p2= position: [[Array]]-format[[Position]]|= Parameter 2
|p2= position: [[Array]]-format [[Position]]|= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 18:55, 22 January 2009

Hover & click on the images for description

Description

Description:
Order the given unit(s) to move to the given position (without radio messages).
Groups:
Uncategorised

Syntax

Syntax:
unit(s) doMove position
Parameters:
unit(s): Object or Array
position: Array-format Position
Return Value:
Nothing

Examples

Example 1:
_soldier1 doMove (position officer)
Example 2:
this doMove (getMarkerPos "Marker1")

Additional Information

See also:
commandMove

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

Notes

Posted on February 9, 2008
Kronzky
If doMove is to be used in conjunction with waypoint behavior commands (e.g. setSpeedMode), then those have to be issued after the move command to have an effect. Otherwise the move will be done with the default settings.

Bottom Section