doStop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">")
Line 30: Line 30:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dt><dt>
<dd class="notedate">Posted on August 3, 2006 - 14:32</dd>
<dd class="notedate">Posted on August 3, 2006 - 14:32</dd>
<dt class="note">[[User:Hardrock|hardrock]]</dt>
<dt class="note">[[User:Hardrock|hardrock]]</dt>
Line 36: Line 36:


This command will make the unit stop where he is until the unit's group engages the enemy. At that time, the unit will move and fight the enemy. One good use for this is to place a bunch of units in the same group around a campfire or in some other place "for looks", and make them sit down or have their weapon on their back. When the enemy is spotted, they will get up and attack. Note that you cannot do something like place somebody behind sandbags and keep him there during a fight with this command. For that you will need [[disableAI]] "move".</dd>
This command will make the unit stop where he is until the unit's group engages the enemy. At that time, the unit will move and fight the enemy. One good use for this is to place a bunch of units in the same group around a campfire or in some other place "for looks", and make them sit down or have their weapon on their back. When the enemy is spotted, they will get up and attack. Note that you cannot do something like place somebody behind sandbags and keep him there during a fight with this command. For that you will need [[disableAI]] "move".</dd>
 
<dt><dt>
<dd class="notedate"></dd>
<dd class="notedate"></dd>
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
Line 42: Line 42:
In '''ArmA 1.14''', this command will not stop a unit that has been given a move order by selecting the unit, then clicking on the in game map (or ground).
In '''ArmA 1.14''', this command will not stop a unit that has been given a move order by selecting the unit, then clicking on the in game map (or ground).
</dd>
</dd>
 
<dt><dt>
<dd class="notedate"></dd>
<dd class="notedate"></dd>
<dt class="note">[[User:Katulobotomia|Katulobotomia]]</dt>
<dt class="note">[[User:Katulobotomia|Katulobotomia]]</dt>
Line 48: Line 48:
doStop'ed units WILL return to formation if their leader's behaviour isn't set to "COMBAT". The squad leader will also order everyone to return to formation if there are no enemies nearby in a set period of time, overwriting the doStop command. doStop can be best used to simply stop the unit from doing whatever he is currently doing without radio messages.
doStop'ed units WILL return to formation if their leader's behaviour isn't set to "COMBAT". The squad leader will also order everyone to return to formation if there are no enemies nearby in a set period of time, overwriting the doStop command. doStop can be best used to simply stop the unit from doing whatever he is currently doing without radio messages.
</dd>
</dd>
 
<dt><dt>
<dd class="notedate">Posted on December 23, 2016 - 21:22 (UTC)</dd>
<dd class="notedate">Posted on December 23, 2016 - 21:22 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
Line 54: Line 54:
When a unit reaches position given with [[doMove]], [[unitReady]] becomes [[true]]. If [[doStop]] command is not executed, unit will start wondering on its own soon after, especially if unit is under fire. [[doStop]] will keep unit at the given position, but watch out for [[unitReady]] as it will become [[false]] since unit is holding position indefinitely.
When a unit reaches position given with [[doMove]], [[unitReady]] becomes [[true]]. If [[doStop]] command is not executed, unit will start wondering on its own soon after, especially if unit is under fire. [[doStop]] will keep unit at the given position, but watch out for [[unitReady]] as it will become [[false]] since unit is holding position indefinitely.
</dd>
</dd>
 
<dt><dt>
<dd class="notedate">Posted on December 27, 2016 - 00:30 (UTC)</dd>
<dd class="notedate">Posted on December 27, 2016 - 00:30 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>

Revision as of 00:12, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Control

Syntax

Syntax:
Syntax needed
Parameters:
unit(s): Object or Array of Objects
Return Value:
Return value needed

Examples

Example 1:
doStop _soldier1;
Example 2:
doStop [_soldier1, _soldier2];
Example 3:
doStop (units player);

Additional Information

See also:
commandStopstopstoppeddoMove

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
Posted on August 3, 2006 - 14:32
hardrock
Notes from before the conversion: This command will make the unit stop where he is until the unit's group engages the enemy. At that time, the unit will move and fight the enemy. One good use for this is to place a bunch of units in the same group around a campfire or in some other place "for looks", and make them sit down or have their weapon on their back. When the enemy is spotted, they will get up and attack. Note that you cannot do something like place somebody behind sandbags and keep him there during a fight with this command. For that you will need disableAI "move".
Ceeeb
In ArmA 1.14, this command will not stop a unit that has been given a move order by selecting the unit, then clicking on the in game map (or ground).
Katulobotomia
doStop'ed units WILL return to formation if their leader's behaviour isn't set to "COMBAT". The squad leader will also order everyone to return to formation if there are no enemies nearby in a set period of time, overwriting the doStop command. doStop can be best used to simply stop the unit from doing whatever he is currently doing without radio messages.
Posted on December 23, 2016 - 21:22 (UTC)
Killzone Kid
When a unit reaches position given with doMove, unitReady becomes true. If doStop command is not executed, unit will start wondering on its own soon after, especially if unit is under fire. doStop will keep unit at the given position, but watch out for unitReady as it will become false since unit is holding position indefinitely.
Posted on December 27, 2016 - 00:30 (UTC)
Killzone Kid
Although it is possible to resume group default behaviour by joining units into own group like this units _group joinSilent _group there is a risk that the leader will change. Instead use doFollow command as explained in the description.