ACE3/addons/medical/functions/fnc_addUnconsciousCondition.sqf

28 lines
625 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* 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>
*
* Return Value:
2015-08-22 14:25:10 +00:00
* None
*
* Example:
* [[{bob}]] call ace_medical_fnc_addUnconsciousCondition
*
* Public: Yes
*/
if (isnil QGVAR(unconsciousConditions)) then {
GVAR(unconsciousConditions) = [];
};
if (_this isEqualType []) then {
{
if (_x isEqualType {}) then {
GVAR(unconsciousConditions) pushback _x;
};
2015-08-22 14:25:10 +00:00
} foreach _this;
};