ACE3/addons/common/functions/fnc_isAwake.sqf

18 lines
377 B
Plaintext
Raw Normal View History

2015-09-19 20:27:23 +00:00
/*
* Author: Glowbal
* Check if unit is awake. Will be false when death or unit is unconscious.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* if unit is awake <BOOL>
*
* Public: Yes
2015-01-16 23:21:47 +00:00
*/
#include "script_component.hpp"
2015-09-19 20:27:23 +00:00
params ["_unit"];
2015-05-14 18:06:06 +00:00
!(_unit getVariable ["ACE_isUnconscious", false]) && alive _unit && !(_unit getVariable ["ACE_isDead", false]) // return