ACE3/addons/medical/functions/fnc_addUnconsciousCondition.sqf

25 lines
569 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Adds new condition for the unconscious state. Conditions are not actively checked for units unless unit is in unconscious state.
*
* Arguments:
2015-08-22 14:25:10 +00:00
* 0-N: Code, should return a boolean <CODE>
*
* ReturnValue:
2015-08-22 14:25:10 +00:00
* None
*
* Public: Yes
*/
#include "script_component.hpp"
2015-11-30 16:22:16 +00:00
if (isNil QGVAR(unconsciousConditions)) then {
GVAR(unconsciousConditions) = [];
};
if (typeName _this == typeName []) then {
{
if (typeName _x == typeName {}) then {
2015-11-30 16:21:28 +00:00
GVAR(unconsciousConditions) pushBack _x;
};
2015-08-22 14:25:10 +00:00
} foreach _this;
};