getFatigue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "") |
Lou Montana (talk | contribs) m (Text replacement - "<dl class='command_description'>" to "<dl class="command_description">") |
||
Line 24: | Line 24: | ||
}} | }} | ||
<dl class= | <dl class="command_description"> | ||
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note"> | <dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note"> |
Revision as of 16:56, 21 May 2021
Description
- Description:
- Description needed
- Groups:
- Stamina System
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit: Object
- Return Value:
- Return value needed
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
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- 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.