commandMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(24 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|COMMANDMOVE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|COMMANDMOVE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COMMANDMOVE]]
 
[[Category:Scripting Commands ArmA|COMMANDMOVE]]
| ofp |= Game name
 
|1.00|= Game version
 
|arg= local |= Arguments in MP
 
|eff= global |= Effects in MP
____________________________________________________________________________________________


| 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=
____________________________________________________________________________________________


<h2 style="color:#000066"> '''commandMove ''position'''''</h2>
| unitName '''commandMove''' position|SYNTAX=


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


'''Operand types:'''
|p2=  position: [[Array]] - format [[Position]]|PARAMETER2=


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


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


[[Nothing]]
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]]|SEEALSO=


'''Description:'''
}}


Order unit to move to given '''position''' (format [[Position]]) (via radio).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''commandMove''' [[getMarkerPos]] "MarkerMoveOne"
[[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 ArmA|COMMANDMOVE]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:35, 7 April 2019

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:
Uncategorised

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:
doMovesetDestinationmoveTomoveaddWaypointfn_vbs_doMoveEx

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