ACE3/addons/medical/functions/fnc_moduleReviveSettings.sqf

28 lines
691 B
Plaintext
Raw Normal View History

2015-04-25 20:20:28 +00:00
/*
* Author: Glowbal
* Module for adjusting the medical revive settings
*
* Arguments:
* 0: The module logic <LOGIC>
* 1: units <ARRAY>
* 2: activated <BOOL>
*
* Return Value:
2015-08-22 14:25:10 +00:00
* None
2015-04-25 20:20:28 +00:00
*
* Example:
* [LOGIC, [bob, kevin], true] call ACE_medical_fnc_moduleReviveSettings
*
2015-04-25 20:20:28 +00:00
* Public: No
*/
#include "script_component.hpp"
2015-08-22 14:25:10 +00:00
params ["_logic", "_units", "_activated"];
2015-04-25 20:20:28 +00:00
if !(_activated) exitWith {};
[_logic, QGVAR(maxReviveTime), "maxReviveTime"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(amountOfReviveLives), "amountOfReviveLives"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(enableRevive), "enableRevive"] call EFUNC(common,readSettingFromModule);