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
33 lines
589 B
Plaintext
33 lines
589 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Get whatever or not a unit should be or stay unconscious.
|
|
*
|
|
* Arguments:
|
|
* 0: The Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Should the unit stay unconscious? <BOOL>
|
|
*
|
|
* Example:
|
|
* [bob] call ace_medical_fnc_getUnconsciousCondition
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
if (isnil QGVAR(unconsciousConditions)) then {
|
|
GVAR(unconsciousConditions) = [];
|
|
};
|
|
|
|
private _return = false;
|
|
{
|
|
if ((_x isEqualType {}) && {([_unit] call _x)}) exitwith {
|
|
_return = true;
|
|
};
|
|
} foreach GVAR(unconsciousConditions);
|
|
|
|
_return
|