mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
31 lines
547 B
Plaintext
31 lines
547 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Get whatever or not a unit should be or stay unconscious.
|
|
*
|
|
* Arguments:
|
|
* 0: The Unit <OBJECT>
|
|
*
|
|
* ReturnValue:
|
|
* Should the unit stay unconscious? <BOOL>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit","_return"];
|
|
params ["_unit"];
|
|
|
|
if (isnil QGVAR(unconsciousConditions)) then {
|
|
GVAR(unconsciousConditions) = [];
|
|
};
|
|
|
|
_return = false;
|
|
{
|
|
if (typeName _x == typeName {} && {([_unit] call _x)}) exitwith {
|
|
_return = true;
|
|
};
|
|
} foreach GVAR(unconsciousConditions);
|
|
|
|
_return
|