2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
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>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_common_fnc_isAwake
|
|
|
|
*
|
2015-09-19 20:27:23 +00:00
|
|
|
* Public: Yes
|
2015-01-16 23:21:47 +00:00
|
|
|
*/
|
|
|
|
|
2015-09-19 20:27:23 +00:00
|
|
|
params ["_unit"];
|
2015-05-14 18:06:06 +00:00
|
|
|
|
2017-06-15 19:35:33 +00:00
|
|
|
alive _unit && {!(_unit getVariable ["ACE_isUnconscious", false])}
|