doStop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (units)
m (changed global to local variable to make clear the variable)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''doStop''' unit(s) |= Syntax
| '''doStop''' [[Object#Unit(s)|Unit(s)]] |= Syntax


|p1= unit(s): [[Object]] or [[Array]] |= Parameter 1
|p1= [[Object#Unit(s)|Unit(s)]] |= Parameter 1


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>doStop soldier1</pre> |= Example 1
|x1= <pre>doStop _soldier1</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:50, 27 August 2007

Hover & click on the images for description

Description

Description:
Order the given unit(s) to stop (without radio messages).
Groups:
Uncategorised

Syntax

Syntax:
doStop Unit(s)
Parameters:
Unit(s)
Return Value:
Nothing

Examples

Example 1:
doStop _soldier1

Additional Information

See also:
commandStop

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 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".

Bottom Section