mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
523 B
Plaintext
22 lines
523 B
Plaintext
/**
|
|
* fn_hasMedicalEnabled.sqf
|
|
* @Descr: Check if unit has CMS enabled.
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [unit OBJECT]
|
|
* @Return: BOOL
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit", "_medicalEnabled"];
|
|
_unit = _this select 0;
|
|
|
|
_medicalEnabled = _unit getvariable QGVAR(enableMedical);
|
|
if (isnil "_medicalEnabled") exitwith {
|
|
(((GVAR(enabledFor) == 0 && (isPlayer _unit || (_unit getvariable [QEGVAR(common,isDeadPlayer), false])))) || (GVAR(enabledFor) == 1));
|
|
};
|
|
|
|
_medicalEnabled;
|