fleeing: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Checks if a unit is fleeing. |= | | Checks if a unit is fleeing. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Boolean]] <nowiki>=</nowiki> '''fleeing''' unitName |= | | [[Boolean]] <nowiki>=</nowiki> '''fleeing''' unitName |SYNTAX= | ||
|p1= unitName: [[Object]] |= | |p1= unitName: [[Object]] |PARAMETER1= | ||
| [[Boolean]] - | | [[Boolean]] - | ||
Returns true if a unit is fleeing, false if not. Dead or empty units return false. |= | Returns true if a unit is fleeing, false if not. Dead or empty units return false. |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>? (fleeing _east_unit) : player sideChat "We have won!"</pre> |= | |x1= <pre>? (fleeing _east_unit) : player sideChat "We have won!"</pre> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[allowFleeing]]|= | |[[allowFleeing]]|SEEALSO= | ||
}} | }} |
Revision as of 14:39, 7 April 2019
Description
- Description:
- Checks if a unit is fleeing.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Boolean = fleeing unitName
- Parameters:
- unitName: 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:
- allowFleeing
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters