Arma 3 Scripting

Command in Stamina System

getFatigue

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

Description

Returns fatigue of given unit.

Syntax

getFatigue unit

Parameters:

Returns: Number

Examples

Example 1

if (getFatigue player < 0.5) then { player sideChat "I'm good to go!" };

See also

setFatigue · enableFatigue · getStamina

Community notes

Killzone_Kid

getFatigue can be applied to remote unit however it will not read the changes made to unit's fatigue with setFatigue command. Only natural changes resulting from unit moving will be counted. When applied to local unit, it will read resulting value of natural fatigue combined with artificial changes added locally by setFatigue. In short, the server wouldn't know the correct value of remote unit's fatigue if you used setFatigue on the unit prior.