Difference between revisions of "getFatigue"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 19: Line 19:
 
|x1= <code> value = '''getFatigue''' player;
 
|x1= <code> value = '''getFatigue''' player;
 
</code>|= EXAMPLE1  
 
</code>|= EXAMPLE1  
 +
 +
|x2= <code> if ('''getFatigue''' player < 0.5) Then {player sideChat "I'm good to go!"};
 +
</code>|= EXAMPLE2
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 14:29, 19 May 2013

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:
setFatigue

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section