setFatigue

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 0.50
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

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

Syntax

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

Examples

Example 1:
player setFatigue 1;

Additional Information

Multiplayer:
-
See also:
Arma 3 Stamina getFatigue enableFatigue setStamina getStamina enableStamina

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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