{"name":"isAwake","operator":null,"title":"isAwake","type":"command","url":"https://community.bistudio.com/wiki/isAwake","revid":373887,"updated":"2025-06-26T10:59:02Z","groups":["PhysX"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.08"}],"since":{"game":"arma3","name":"Arma 3","version":"2.08"},"arma3_since":"2.08","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns resting state of a PhysX (EPE) object. Some EPE objects are deliberately put to sleep by the engine to save resources.\nThis command returns true when object is simulating and false when it is put to sleep. With units of type `Man` the behaviour is slightly different.\nAs units never get put to sleep, the command outputs ragdoll state of a unit instead. There are 6 states for the output of the command:\n- EPE object is simulating - true\n- EPE object is put to sleep - false\n- Unit is alive, ragdoll is active - false\n- Unit is alive, ragdoll is NOT active - true\n- Arma 3 v2.10 Unit is NOT alive, ragdoll is active - true\n- Arma 3 v2.10 Unit is NOT alive, ragdoll is NOT active - false","syntaxes":[{"syntax":"isAwake object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"PhysX object or unit","types":["Object"],"since":null,"text":"object: Object - PhysX object or unit"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"see description","text":"Boolean - see description"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _isAwake = isAwake _object;\n```","code":["private _isAwake = isAwake _object;"]},{"text":"Arma 3 v2.10 Here is a simple formula to return ragdoll state of a unit:\n\n```sqf\nprivate _unitIsInRagdoll = alive _unit != isAwake _unit;\n```","code":["private _unitIsInRagdoll = alive _unit != isAwake _unit;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["awake","addTorque","addForce","vectorModelToWorld","vectorModelToWorldVisual","selectionPosition"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: PhysX","Introduced with Arma 3 version 2.08","Scripting Commands"]}