fleeing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (=)
m (changed global to local variable to make clear the variable)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Boolean]] <nowiki>=</nowiki> '''fleeing''' unit |= Syntax
| [[Boolean]] <nowiki>=</nowiki> '''fleeing''' [[Object#Unit|Unit]] |= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= [[Object#Unit|Unit]] |= Parameter 1


| [[Boolean]] -   
| [[Boolean]] -   
Line 20: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>? (fleeing east_unit) : player sideChat "We have won!"</pre> |= Example 1
|x1= <pre>? (fleeing _east_unit) : player sideChat "We have won!"</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:28, 27 August 2007

Hover & click on the images for description

Description

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

Syntax

Syntax:
Boolean = fleeing Unit
Parameters:
Unit
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

Posted on 20:12, 19 March 2007 (CET)
Shuko
To prevent units from fleeing, use allowFleeing.

Bottom Section