allowFleeing: Difference between revisions

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


| ofp |= Game name


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


|arg= global |= Arguments in MP


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


'''unit:''' [[Object or Group]]
| Set the courage of the group or unit. The less courage a group or unit has, the sooner it will start fleeing. |= Description
____________________________________________________________________________________________


'''courage:''' [[Number]]
| unit '''allowFleeing''' courage |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object or Group]] |= Parameter 1


[[Nothing]]
|p2= courage: [[Number]] - range 0 (maximum courage) to 1 (minimum courage) |= Parameter 2


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


Set group courage.
| [[fleeing]] |= See also


The less courage, the sooner will group start fleeing.
}}


0 means maximum courage, 1 means always fleeing.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''allowFleeing''' 0
[[Category:Scripting Commands|ALLOWFLEEING]]
[[Category:Scripting Commands OFP 1.96|ALLOWFLEEING]]
[[Category:Scripting Commands OFP 1.46|ALLOWFLEEING]]
[[Category:Scripting Commands ArmA|ALLOWFLEEING]]

Revision as of 21:59, 1 August 2006

Hover & click on the images for description

Description

Description:
Set the courage of the group or unit. The less courage a group or unit has, the sooner it will start fleeing.
Groups:
Uncategorised

Syntax

Syntax:
unit allowFleeing courage
Parameters:
unit: Object or Group
courage: Number - range 0 (maximum courage) to 1 (minimum courage)
Return Value:
Nothing

Examples

Example 1:
group1 allowFleeing 1

Additional Information

See also:
fleeing

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