setFatigue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50
|arg= global |Multiplayer Arguments=
|arg= global


|eff= local |Multiplayer Effects=
|eff= local


|gr1= Stamina System |GROUP1=
|gr1= Stamina System


| Sets the person's fatigue, from 0 to 1. |DESCRIPTION=
| Sets the person's fatigue, from 0 to 1.


| unit '''setFatigue''' value |SYNTAX=
| unit '''setFatigue''' value


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


|p2= value: [[Number]] |PARAMETER2=
|p2= value: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|x1= <code> player '''setFatigue''' 1;
|x1= <code> player '''setFatigue''' 1;
</code>|EXAMPLE1=
</code>




| [[Arma 3 Stamina]] [[getFatigue]] [[enableFatigue]] [[setStamina]] [[getStamina]] [[enableStamina]] |SEEALSO=
| [[Arma 3 Stamina]] [[getFatigue]] [[enableFatigue]] [[setStamina]] [[getStamina]] [[enableStamina]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 11:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets the person's fatigue, from 0 to 1.
Groups:
Stamina System

Syntax

Syntax:
unit setFatigue value
Parameters:
unit: Object
value: Number
Return Value:
Nothing

Examples

Example 1:
player setFatigue 1;

Additional Information

See also:
Arma 3 Stamina getFatigue enableFatigue setStamina getStamina enableStamina

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

Posted on 05 April, 2014
Killzone_Kid

setFatigue will affect fatigue of a local unit only. If you execute it on remote unit, the getFatigue value will only change locally with no effect on remote unit. Scripted setFatigue changes don't broadcast at all. In short, use setFatigue on local units only.

Bottom Section