{"name":"getFatigue","operator":null,"title":"getFatigue","type":"command","url":"https://community.bistudio.com/wiki/getFatigue","revid":363589,"updated":"2024-04-07T18:18:03Z","groups":["Stamina System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns fatigue of given unit.","syntaxes":[{"syntax":"getFatigue unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\nif (getFatigue player < 0.5) then { player sideChat \"I'm good to go!\" };\n```","code":["if (getFatigue player < 0.5) then { player sideChat \"I'm good to go!\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setFatigue","enableFatigue","getStamina"],"notes":[{"user":"Killzone_Kid","date":"2014-04-05T09:30:00Z","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.\nWhen applied to local unit, it will read resulting value of natural fatigue combined with artificial changes added locally by setFatigue.\nIn short, the server wouldn't know the correct value of remote unit's fatigue if you used setFatigue on the unit prior."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Stamina System","Introduced with Arma 3 version 0.50","Scripting Commands"]}