commandMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
(38 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|C]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.97|C]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|C]]
[[Category:Scripting Commands ArmA|C]]


back to [[Scripting_Reference#C|COMREF]]
| ofp |Game name=


<h2 style="color:#000066"> '''commandMove ''position'''''</h2>
|1.00|Game version=


|gr1= Groups |GROUP1=


'''Operand types:'''
|arg= local |Multiplayer Arguments=


'''position:''' [[Array]]
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________


'''Type of returned value:'''
| 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. |DESCRIPTION=
____________________________________________________________________________________________


[[Nothing]]
| unitName '''commandMove''' position|SYNTAX=


'''Description:'''
|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=


Order unit to move to given '''position''' (format [[Position]]) (via radio).
|p2=  position: [[Array]] - format [[Position]]|PARAMETER2=


| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_soldier1 [[commandMove]] ([[getMarkerPos]] "Marker1") </code> |EXAMPLE1=
____________________________________________________________________________________________


'''Example:'''
| 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. |=


soldierOne '''commandMove''' [[getMarkerPos]] "MarkerMoveOne"
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]]|SEEALSO=
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|COMMANDMOVE]]
[[Category:Scripting Commands OFP 1.99|COMMANDMOVE]]
[[Category:Scripting Commands OFP 1.96|COMMANDMOVE]]
[[Category:Scripting Commands OFP 1.46|COMMANDMOVE]]
[[Category:Scripting Commands Armed Assault|COMMANDMOVE]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 12:11, 25 September 2020

Hover & click on the images for description

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:
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.
Groups:
Groups

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

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

Bottom Section