mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
401 B
Plaintext
17 lines
401 B
Plaintext
/**
|
|
* fn_canGoUnconsciousState.sqf
|
|
* @Descr: Checks if an object can move into unconscious state
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [unit OBJECT]
|
|
* @Return: BOOL true if object can move into unconscious state
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit"];
|
|
_unit = _this select 0;
|
|
|
|
(!(isNull _unit) && {(_unit isKindOf "CaManBase") && ([_unit] call FUNC(isAwake))}) |