Arma 3 Scripting

Command in Object Manipulation

fleeing

Also available as Markdown and JSON, or read the original wiki page.

Description

Checks if a unit is fleeing.

Notes:

Syntax

fleeing unit

Parameters:

Returns: Boolean - returns true if a unit is fleeing, false if not. Dead or empty units return false.

Examples

Example 1

if (fleeing soldier_1) then {player sideChat "We have won!"} else {player sideChat "Keep fighting!"};

See also

allowFleeing