allowFleeing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[.*\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|1.00
|version1= 1.00
 
|game2= arma1
 
|version2= 1.00
 
|game3= arma2
 
|version3= 1.00
 
|game4= arma2oa
 
|version4= 1.51
 
|game5= tkoh
 
|version5= 1.00
 
|game6= arma3
 
|version6= 0.50


|arg= local
|arg= local
Line 13: Line 33:
|gr2= Groups
|gr2= Groups


| Sets the cowardice level (the lack of courage or bravery) of a group or unit.
|descr= Sets the cowardice level (the lack of courage or bravery) of a group or unit.
<br><br>
<br><br>
Notes:
Notes:
Line 20: Line 40:
* More details in [[fleeing]]
* More details in [[fleeing]]


| name '''allowFleeing''' cowardice
|s1= unitOrGroup '''allowFleeing''' cowardice


|p1= name: [[Object]] or [[Group]]
|p1= unitOrGroup: [[Object]] or [[Group]]


|p2= cowardice: [[Number]]
|p2= cowardice: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>_group1 [[allowFleeing]] 0;</code>
|x1= <code>_group1 [[allowFleeing]] 0;</code>
Line 32: Line 52:
|seealso= [[fleeing]]
|seealso= [[fleeing]]
}}
}}
[[Category:Scripting Commands OFP 1.99|ALLOWFLEEING]]
[[Category:Scripting Commands OFP 1.96|ALLOWFLEEING]]
[[Category:Scripting Commands OFP 1.46|ALLOWFLEEING]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 09:22, 8 March 2021

Hover & click on the images for description

Description

Description:
Sets the cowardice level (the lack of courage or bravery) of a group or unit.

Notes:
  • The more cowardice a Group or Object has, the sooner it will start fleeing.
  • 0 means maximum courage, while 1 means always fleeing.
  • More details in fleeing
Groups:
Object ManipulationGroups

Syntax

Syntax:
unitOrGroup allowFleeing cowardice
Parameters:
unitOrGroup: Object or Group
cowardice: Number
Return Value:
Nothing

Examples

Example 1:
_group1 allowFleeing 0;

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