setFatigue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(note on mp effect)
m (Text replacement - "\<dt class\=\"note\"\>\'\'\'\[\[(.*)\]\]\'\'\'" to "<dt class="note">$1")
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


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


|eff= local |= Effects in MP
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


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


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




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


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
Line 37: Line 37:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 05 April, 2014
<dd class="notedate">Posted on 05 April, 2014
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''<dd class="note">
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note">
<br>
<br>
[[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.<br>
[[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.<br>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 17:09, 17 May 2020

Hover & click on the images for description

Description

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

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