ACE3/addons/common/functions/fnc_registerUnconsciousCondition.sqf
2015-01-18 20:09:19 +01:00

22 lines
587 B
Plaintext

/**
* fn_registerUnconsciousCondition.sqf
* @Descr: Register new condition for the unconscious state. Conditions are not actively checked for units unless unit is in unconscious state.
* @Author: Glowbal
*
* @Arguments: [code CODE]
* @Return: void
* @PublicAPI: true
*/
#include "script_component.hpp"
if (isnil QGVAR(unconsciousConditions_F)) then {
GVAR(unconsciousConditions_F) = [];
};
if (typeName _this == typeName []) then {
{
if (typeName _x == typeName {}) then {
GVAR(unconsciousConditions_F) pushback _x;
};
}foreach _this;
};