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]]
[[Category:Scripting Commands|DOSTOP]]
[[Category:Scripting Commands OFP 1.97|DOSTOP]]
[[Category:Scripting Commands OFP 1.96|DOSTOP]]
[[Category:Scripting Commands OFP 1.46|DOSTOP]]
[[Category:Scripting Commands OFP 1.46|DOSTOP]]
[[Category:Scripting Commands ArmA|DOSTOP]]
[[Category:Scripting Commands ArmA|DOSTOP]]

Revision as of 21:15, 1 June 2006


doStop


Operand types:

None

Type of returned value:

Nothing

Description:

Order unit to stop (silent).

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