ACE3/addons/medical/functions/fnc_getUnconsciousCondition.sqf
SilentSpike 975bc229c6 Merge branch 'master' into ace_spectator
Conflicts:
	addons/spectator/stringtable.xml
2015-07-04 18:53:20 +01:00

31 lines
553 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"];
_unit = _this select 0;
if (isnil QGVAR(unconsciousConditions)) then {
GVAR(unconsciousConditions) = [];
};
_return = false;
{
if (typeName _x == typeName {} && {([_unit] call _x)}) exitwith {
_return = true;
};
}foreach GVAR(unconsciousConditions);
_return;