Difference between revisions of "getFatigue"
Jump to navigation
Jump to search
m (removed empty line from note) |
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
||
Line 1: | Line 1: | ||
− | {{Command|= | + | {{Command|Comments= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 12:52, 31 August 2019
Hover & click on the images for descriptions
Description
- Description:
- Returns fatigue of given unit.
Syntax
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:
- setFatigueenableFatiguegetStamina
- Groups:
- Uncategorised
Notes
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.
Bottom Section
Categories:
- Pages using duplicate arguments in template calls
- Scripting Commands
- Arma 3: Scripting Commands
- Arma 3: New Scripting Commands
- Command Group: Uncategorised
- Introduced with Arma 3 version 0.50
- Commands utilizing global arguments
- Arma 3: New Scripting Commands List
- Scripting Commands Arma 3
- Command Group: Object Information