Difference between revisions of "doMove"
Jump to navigation
Jump to search
m (note format) |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
(28 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{RV|type=command |
− | |||
− | | ofp | + | | ofp |
− | |1.00 | + | |1.00 |
− | |arg= local | + | |arg= local |
− | |eff= global | + | |eff= global |
− | |||
− | | | + | |gr1= Unit Control |
− | |||
− | | unit(s) | + | | 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. |
− | | | + | | unit(s) '''doMove''' position |
− | | | + | |p1= unit(s): [[Object]] or [[Array]] |
− | | [[Nothing]] | + | |p2= position: [[Array]] - format [[Position]] |
− | + | ||
+ | | [[Nothing]] | ||
− | |x1= <code>_soldier1 [[doMove]] ([[position]] _officer);</code> | + | |x1= <code>_soldier1 [[doMove]] ([[position]] _officer);</code> |
− | |x2= <code>this [[doMove]] ([[getMarkerPos]] "Marker1");</code> | + | |x2= <code>this [[doMove]] ([[getMarkerPos]] "Marker1");</code> |
− | |||
− | |||
− | |||
+ | |seealso= [[commandMove]], [[setDestination]], [[moveTo]], [[move]], [[addWaypoint]] | ||
}} | }} | ||
− | |||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
− | <dd class="notedate">Posted on February 9, 2008 | + | <dd class="notedate">Posted on February 9, 2008</dd> |
− | <dt class="note"> | + | <dt class="note">[[User:Kronzky|Kronzky]]</dt> |
<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 | + | <dd class="notedate">Posted on February 3, 2009</dd> |
− | <dt class="note"> | + | <dt class="note">[[User:General_Barron|General Barron]]</dt> |
<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. | + | 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. |
− | |||
+ | </dl> | ||
− | |||
− | |||
− | [[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]] | ||
− | + | {{GameCategory|arma1|Scripting Commands}} | |
− | + | {{GameCategory|arma2|Scripting Commands}} | |
− | + | {{GameCategory|arma3|Scripting Commands}} | |
− | + | {{GameCategory|tkoh|Scripting Commands}} | |
− |
Latest revision as of 23:42, 16 February 2021
Hover & click on the images for descriptions
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.
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:
- commandMovesetDestinationmoveTomoveaddWaypoint
- Groups:
- Unit Control
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.
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 OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands