mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
28 lines
625 B
Plaintext
28 lines
625 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>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [[{bob}]] call ace_medical_fnc_addUnconsciousCondition
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if (isnil QGVAR(unconsciousConditions)) then {
|
|
GVAR(unconsciousConditions) = [];
|
|
};
|
|
if (_this isEqualType []) then {
|
|
{
|
|
if (_x isEqualType {}) then {
|
|
GVAR(unconsciousConditions) pushback _x;
|
|
};
|
|
} foreach _this;
|
|
};
|