getFatigue

From Bohemia Interactive Community
Revision as of 10:30, 5 April 2014 by Killzone Kid (talk | contribs) (mp note)
Jump to navigation Jump to search
Introduced with Arma 3 version 0.500.50
Hover & click on the images for descriptions

Description

Description:
Returns fatigue of given unit.

Syntax

Syntax:
getFatigue unit
Parameters:
unit: Object
Return Value:
Number

Examples

Example 1:
value = getFatigue player;
Example 2:
if (getFatigue player < 0.5) Then { player sideChat "I'm good to go!" };

Additional Information

See also:
setFatigueenableFatigue

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

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.

Bottom Section