Difference between revisions of "commandMove"

From Bohemia Interactive Community
Jump to navigation Jump to search
(No brackets needed)
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| ofp |= Game name
+
| ofp |Game name=
  
|1.00|= Game version
+
|1.00|Game version=
  
|arg= local |= Arguments in MP
+
|gr1= Groups |GROUP1=
  
|eff= global |= Effects in MP
+
|arg= local |Multiplayer Arguments=
 +
 
 +
|eff= global |Multiplayer Effects=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| 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
+
| 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=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| unitName '''commandMove''' position|= Syntax
+
| unitName '''commandMove''' position|SYNTAX=
  
|p1= unitName: [[Object]] or [[Array]] |= Parameter 1
+
|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=
  
|p2=  position: [[Array]] - format [[Position]]|= Parameter 2
+
|p2=  position: [[Array]] - format [[Position]]|PARAMETER2=
  
| [[Nothing]] |= Return value
+
| [[Nothing]] |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code>_soldier1 [[commandMove]] ([[getMarkerPos]] "Marker1") </code> |= Example 1
+
|x1= <code>_soldier1 [[commandMove]] ([[getMarkerPos]] "Marker1") </code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
 
| 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= 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. |=
  
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]], [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]]|= See also
+
| [[doMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]]|SEEALSO=
  
 
}}
 
}}
Line 45: Line 47:
 
[[Category:Scripting Commands OFP 1.96|COMMANDMOVE]]
 
[[Category:Scripting Commands OFP 1.96|COMMANDMOVE]]
 
[[Category:Scripting Commands OFP 1.46|COMMANDMOVE]]
 
[[Category:Scripting Commands OFP 1.46|COMMANDMOVE]]
[[Category:Scripting Commands ArmA|COMMANDMOVE]]
+
[[Category:Scripting Commands Armed Assault|COMMANDMOVE]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Arma 2|{{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 Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
+
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:11, 25 September 2020

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network
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:
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.

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

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section