getFatigue: Difference between revisions
Jump to navigation
Jump to search
m (added to Object Information command group) |
Killzone Kid (talk | contribs) (mp note) |
||
Line 34: | Line 34: | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''<dd class="note"> | |||
<br> | |||
[[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]].<br> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 09:30, 5 April 2014
Description
- Description:
- Returns fatigue of given unit.
- Groups:
- Uncategorised
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:
- setFatigueenableFatigue
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
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.