allowFleeing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
[[Category:Scripting Commands ArmA|A]]
[[Category:Scripting Commands ArmA|A]]


back to [[Scripting_Reference#A|COMREF]]


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

Revision as of 11:28, 23 April 2006


unit allowFleeing courage


Operand types:

unit: Object or Group

courage: Number

Type of returned value:

Nothing

Description:

Set group courage.

The less courage, the sooner will group start fleeing.

0 means maximum courage, 1 means always fleeing.


Example:

soldierOne allowFleeing 0