doStop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Some wiki formatting)
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
----
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= global |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|eff= global |Multiplayer Effects=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| Order the given unit(s) to stop (without radio messages). The units stopped in this way will leave the groups formation. It will prevent them from moving around with their group (or formation leader), while still being able to turn around and even move to a new position if they see fit. <br><br>The units will still respond to orders from their group leader (like engage, rearm, board a vehicle), but all of their actions will be separate from the group formation. To resume group default behaviour, use [[doFollow]] command. For example: <tt>[[units]] _group [[doFollow]] [[leader]] _group;</tt> |DESCRIPTION=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| '''doStop''' unit(s) |SYNTAX=
|game6= tkoh
|version6= 1.00


|p1= unit(s): [[Object]] or [[Array]] of [[Object]]s |PARAMETER1=
|game7= arma3
|version7= 0.50


| [[Nothing]] |RETURNVALUE=
|arg= global
____________________________________________________________________________________________
 
|x1= <code>[[doStop]] _soldier1;</code> |EXAMPLE1=


|x2= <code>[[doStop]] [_soldier1, _soldier2];</code> |EXAMPLE2=
|eff= global


|x3= <code>[[doStop]] ([[units]] [[player]]);</code> |EXAMPLE3=
|gr1= Unit Control
____________________________________________________________________________________________


| [[commandStop]], [[stop]], [[stopped]], [[doMove]] |SEEALSO=
|descr= Order the given unit(s) to stop (without radio messages). The units stopped in this way will leave the groups formation. It will prevent them from moving around with their group (or formation leader), while still being able to turn around and even move to a new position if they see fit. <br><br>The units will still respond to orders from their group leader (like engage, rearm, board a vehicle), but all of their actions will be separate from the group formation. To resume group default behaviour, use [[doFollow]] command. For example: <sqf inline>units _group doFollow leader _group;</sqf>


}}
|s1= [[doStop]] unit(s)


<h3 style="display:none">Notes</h3>
|p1= unit(s): [[Object]] or [[Array]] of [[Object]]s
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 3, 2006 - 14:32
|r1= [[Nothing]]
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''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".
|x1= <sqf>doStop _soldier1;</sqf>


<dd class="notedate">
|x2= <sqf>doStop [_soldier1, _soldier2];</sqf>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dd class="note">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 class="notedate">
|x3= <sqf>doStop (units player);</sqf>
<dt class="note">'''[[User:Katulobotomia|Katulobotomia]]'''
<dd class="note">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.


<!-- Note Section END -->
|seealso= [[commandStop]] [[stop]] [[stopped]] [[doMove]] [[doFollow]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
|user= Hardrock
|timestamp= 20060803143200
|text= ''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".
}}


{{Note
|user= Ceeeb
|timestamp= 20090221001300
|text= 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).
}}


[[Category:Scripting Commands|DOSTOP]]
{{Note
[[Category:Scripting Commands OFP 1.99|DOSTOP]]
|user= Katulobotomia
[[Category:Scripting Commands OFP 1.96|DOSTOP]]
|timestamp= 20130926123000
[[Category:Scripting Commands OFP 1.46|DOSTOP]]
|text= 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.
[[Category:Scripting Commands ArmA|DOSTOP]]
}}
[[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}}}}]]


<!-- CONTINUE Notes -->
{{Note
<dl class="command_description">
|user= Killzone_Kid
<dd class="notedate">Posted on December 23, 2016 - 21:22 (UTC)</dd>
|timestamp= 20161223212200
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
|text= 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 class="note"> 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>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
{{Note
<dl class="command_description">
|user= Killzone_Kid
<dd class="notedate">Posted on December 27, 2016 - 00:30 (UTC)</dd>
|timestamp= 20161227003000
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
|text= Although it is possible to resume group default behaviour by joining units into own group like this {{hl|units _group joinSilent _group}} there is a risk that the leader will change. Instead use [[doFollow]] command as explained in the description.
<dd class="note">
}}
Although it is possible to resume group default behaviour by joining units into own group like this <tt>units _group joinSilent _group</tt> there is a risk that the leader will change. Instead use [[doFollow]] command as explained in the description.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 21:43, 14 December 2022

Hover & click on the images for description

Description

Description:
Order the given unit(s) to stop (without radio messages). The units stopped in this way will leave the groups formation. It will prevent them from moving around with their group (or formation leader), while still being able to turn around and even move to a new position if they see fit.

The units will still respond to orders from their group leader (like engage, rearm, board a vehicle), but all of their actions will be separate from the group formation. To resume group default behaviour, use doFollow command. For example: units _group doFollow leader _group;
Groups:
Unit Control

Syntax

Syntax:
doStop unit(s)
Parameters:
unit(s): Object or Array of Objects
Return Value:
Nothing

Examples

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

Additional Information

See also:
commandStop stop stopped doMove doFollow

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
Hardrock - c
Posted on Aug 03, 2006 - 14:32 (UTC)
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 - c
Posted on Feb 21, 2009 - 00:13 (UTC)
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 - c
Posted on Sep 26, 2013 - 12:30 (UTC)
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.
Killzone_Kid - c
Posted on Dec 23, 2016 - 21:22 (UTC)
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.
Killzone_Kid - c
Posted on Dec 27, 2016 - 00:30 (UTC)
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.