fleeing: Difference between revisions

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


| ofp |= Game name


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


|arg= global |= Arguments in MP


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


'''unit:''' [[Object]]
| Checks if a unit is fleeing. |= Description
____________________________________________________________________________________________


'''Type of returned value:'''
| '''fleeing''' unit |= Syntax


[[Boolean]]
|p1= unit: [[Object]] |= Parameter 1


'''Description:'''
| [[Boolean]] - 
Returns true if a unit is fleeing, false if not. Dead or empty units return false. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>? (fleeing east_unit) : player sideChat "We have won!"</pre> |= Example 1
____________________________________________________________________________________________


Check if unit is fleeing.
|  |= See also


Dead or empty unit returns [[false]].
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Example:'''
<!-- Note Section END -->
</dl>


? ('''fleeing''' eastReconGroup) : [[goto]] "firingsquad"
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|FLEEING]]
[[Category:Scripting Commands OFP 1.96|FLEEING]]
[[Category:Scripting Commands OFP 1.46|FLEEING]]
[[Category:Scripting Commands ArmA|FLEEING]]

Revision as of 01:13, 2 August 2006

Hover & click on the images for description

Description

Description:
Checks if a unit is fleeing.
Groups:
Uncategorised

Syntax

Syntax:
fleeing unit
Parameters:
unit: Object
Return Value:
Boolean - Returns true if a unit is fleeing, false if not. Dead or empty units return false.

Examples

Example 1:
? (fleeing east_unit) : player sideChat "We have won!"

Additional Information

See also:
See also needed

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