doMove: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "") |
||
(18 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ofp | | | ofp |Game name= | ||
|1.00| | |1.00|Game version= | ||
|arg= local |= | |arg= local |Multiplayer Arguments= | ||
|eff= global |= | |eff= global |Multiplayer Effects= | ||
|gr1= Unit Control |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Order the given unit(s) to move to the given position (without radio messages). After reaching his destination, the unit will immediately return to formation (if in a group); or order his group to form around his new position (if a group leader). |= | | Order the given unit(s) to move to the given position (without radio messages). After reaching his destination, the unit will immediately return to formation (if in a group); or order his group to form around his new position (if a group leader). Use [[doStop]] to stop units returning to formation. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| unit(s) '''doMove''' position |= | | unit(s) '''doMove''' position |SYNTAX= | ||
|p1= unit(s): [[Object]] or [[Array]] |= | |p1= unit(s): [[Object]] or [[Array]] |PARAMETER1= | ||
|p2= position: [[Array]] - format [[Position]]|= | |p2= position: [[Array]] - format [[Position]]|PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_soldier1 [[doMove]] ([[position]] _officer);</code> |EXAMPLE1= | ||
|x2= < | |x2= <code>this [[doMove]] ([[getMarkerPos]] "Marker1");</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[commandMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint | | [[commandMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]] |SEEALSO= | ||
}} | }} | ||
Line 36: | Line 38: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on February 9, 2008 | <dd class="notedate">Posted on February 9, 2008 | ||
<dt class="note"> | <dt class="note">[[User:Kronzky|Kronzky]] | ||
<dd class="note"> | <dd class="note"> | ||
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. | 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. | ||
<dd class="notedate">Posted on February 3, 2009 | |||
<dt class="note"> | <dd class="notedate">Posted on February 3, 2009 | ||
<dt class="note">[[User:General_Barron|General Barron]] | |||
<dd class="note"> | <dd class="note"> | ||
If a unit is part of a group, and is not the leader, the unit will fall back into formation soon after the domove is completed. This does not happen for units that are in a group alone (because they are their own leader). | If a unit is part of a group, and is not the leader, the unit will fall back into formation soon after the domove is completed. This does not happen for units that are in a group alone (because they are their own leader). | ||
There is no single command to get a unit to move to a position and stay there. The best way to do this is to issue a domove, then wait for the unit to reach his destination, then disable his movement AI. VBS2 users can use the [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]] function. | There is no single command to get a unit to move to a position and stay there. The best way to do this is to issue a domove, then wait for the unit to reach his destination, then disable his movement AI. VBS2 users can use the [[fn_vbs_doMoveEx_(VBS2)|fn_vbs_doMoveEx]] function. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
Line 59: | Line 57: | ||
[[Category:Scripting Commands|DOMOVE]] | [[Category:Scripting Commands|DOMOVE]] | ||
[[Category:Scripting Commands OFP 1.99|DOMOVE]] | |||
[[Category:Scripting Commands OFP 1.96|DOMOVE]] | [[Category:Scripting Commands OFP 1.96|DOMOVE]] | ||
[[Category:Scripting Commands OFP 1.46|DOMOVE]] | [[Category:Scripting Commands OFP 1.46|DOMOVE]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Armed Assault|DOMOVE]] | ||
[[Category: | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 13:20, 25 September 2020
Description
- Description:
- Order the given unit(s) to move to the given position (without radio messages). After reaching his destination, the unit will immediately return to formation (if in a group); or order his group to form around his new position (if a group leader). Use doStop to stop units returning to formation.
- Groups:
- Unit Control
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
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.
- Posted on February 3, 2009
- General Barron
- If a unit is part of a group, and is not the leader, the unit will fall back into formation soon after the domove is completed. This does not happen for units that are in a group alone (because they are their own leader). There is no single command to get a unit to move to a position and stay there. The best way to do this is to issue a domove, then wait for the unit to reach his destination, then disable his movement AI. VBS2 users can use the fn_vbs_doMoveEx function.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Unit Control
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands Armed Assault
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters