Arma 3 Scripting

fleeing

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · 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