mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
569 B
Plaintext
25 lines
569 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Adds new condition for the unconscious state. Conditions are not actively checked for units unless unit is in unconscious state.
|
|
*
|
|
* Arguments:
|
|
* 0-N: Code, should return a boolean <CODE>
|
|
*
|
|
* ReturnValue:
|
|
* None
|
|
*
|
|
* 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;
|
|
};
|
|
} foreach _this;
|
|
};
|