doStop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|DOSTOP]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DOSTOP]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DOSTOP]]
[[Category:Scripting Commands ArmA|DOSTOP]]


| ofp |= Game name


<h2 style="color:#000066">'''doStop ''unit'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP


'''Operand types:'''
|eff= global |= Effects in MP
____________________________________________________________________________________________


'''unit:''' [[Object]] or [[Array]]
| Order the given unit to stop (without radio messages). |= Description
____________________________________________________________________________________________


'''Type of returned value:'''
| '''doStop''' unit |= Syntax


[[Nothing]]
|p1= unit: [[Object]] |= Parameter 1


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


Order unit to stop (silently).
| [[commandStop]] |= See also


'''Note:''' Stop command is never finished, unit will never be ready.
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Example:'''
<!-- Note Section END -->
</dl>


'''doStop''' unitOne
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


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


'''Comments:'''
[[Category:Scripting Commands|DOSTOP]]
 
[[Category:Scripting Commands OFP 1.96|DOSTOP]]
This command will make the unit stop where he is until the unit's group engages the enemy.
[[Category:Scripting Commands OFP 1.46|DOSTOP]]
 
[[Category:Scripting Commands ArmA|DOSTOP]]
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".

Revision as of 00:49, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
doStop unit
Parameters:
unit: Object
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

Bottom Section

Old Notes (temporary):

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