doStop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:




<h2 style="color:#000066">'''doStop'''</h2>
<h2 style="color:#000066">'''doStop ''unit'''''</h2>




'''Operand types:'''
'''Operand types:'''


None
'''unit:''' [[Object]] or [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 18: Line 18:
'''Description:'''
'''Description:'''


Order unit to stop (silent).
Order unit to stop (silently).


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

Revision as of 13:05, 4 July 2006


doStop unit


Operand types:

unit: Object or Array

Type of returned value:

Nothing

Description:

Order unit to stop (silently).

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


Example:

doStop unitOne


Comments:

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