2015-02-08 12:06:44 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
2015-02-08 12:06:44 +00:00
|
|
|
*
|
|
|
|
* ReturnValue:
|
2015-08-22 14:25:10 +00:00
|
|
|
* None
|
2015-02-08 12:06:44 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (isnil QGVAR(unconsciousConditions)) then {
|
|
|
|
GVAR(unconsciousConditions) = [];
|
|
|
|
};
|
|
|
|
if (typeName _this == typeName []) then {
|
|
|
|
{
|
|
|
|
if (typeName _x == typeName {}) then {
|
|
|
|
GVAR(unconsciousConditions) pushback _x;
|
|
|
|
};
|
2015-08-22 14:25:10 +00:00
|
|
|
} foreach _this;
|
2015-02-08 12:06:44 +00:00
|
|
|
};
|