ACE3/TO_MERGE/cse/main/misc/functions/fn_moduleEnableBasicRevive.sqf

36 lines
884 B
Plaintext
Raw Normal View History

2015-01-12 22:35:40 +00:00
/**
* fn_moduleEnableBasicRevive.sqf
* @Descr: N/A
* @Author: Glowbal
*
* @Arguments: []
* @Return:
* @PublicAPI: false
*/
private ["_args", "_units", "_activated"];
_args = _this;
CSE_ENABLE_REVIVE_F = 0;
CSE_REVIVE_TIMER_F = 600;
CSE_REVIVE_NUMBER_MAX_F = -1;
{
_value = _x select 1;
if (!isnil "_value") then {
if (_x select 0 == "enableFor") then {
CSE_ENABLE_REVIVE_F = _x select 1;
};
if (_x select 0 == "timer") then {
CSE_REVIVE_TIMER_F = _x select 1;
};
if (_x select 0 == "amountOf") then {
CSE_REVIVE_NUMBER_MAX_F = _x select 1;
};
};
}foreach _args;
[
{(((_this select 0) getvariable["CSE_ENABLE_REVIVE_SETDEAD_F",0]) > 0)}
] call cse_fnc_registerUnconsciousCondition;
[format["Enabled Basic Revive Module - ENABLED FOR: %1. TIMER: %2. NUMBER: %3", CSE_ENABLE_REVIVE_F, CSE_REVIVE_TIMER_F, CSE_REVIVE_NUMBER_MAX_F]] call cse_fnc_debug;