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 (Some wiki formatting) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|0.50 | |version1= 0.50 | ||
|arg= global | |arg= global | ||
|gr1= Stamina System | |gr1= Stamina System | ||
| Returns fatigue of given unit. | |descr= Returns fatigue of given unit. | ||
| | |s1= [[getFatigue]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>if (getFatigue player < 0.5) then { player sideChat "I'm good to go!" };</sqf> | ||
</ | |||
| | |seealso= [[setFatigue]] [[enableFatigue]] [[getStamina]] | ||
}} | |||
| | {{Note | ||
|user= Killzone_Kid | |||
|timestamp= 20140405093000 | |||
|text= [[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. | |||
}} | }} | ||
Latest revision as of 19:18, 7 April 2024
Description
- Description:
- Returns fatigue of given unit.
- Groups:
- Stamina System
Syntax
- Syntax:
- getFatigue unit
- Parameters:
- unit: Object
- Return Value:
- Number
Examples
- Example 1:
Additional Information
- See also:
- setFatigue enableFatigue getStamina
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
- Posted on Apr 05, 2014 - 09:30 (UTC)
- 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.