mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
570 B
Plaintext
28 lines
570 B
Plaintext
|
|
/*
|
|
* Author: Glowbal
|
|
* Check if unit has CMS enabled
|
|
*
|
|
* Arguments:
|
|
* 0: unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* enabled <BOOL>
|
|
*
|
|
* Example:
|
|
* [Unit] call ace_medical_fnc_hasMedicalEnabled
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private "_medicalEnabled";
|
|
params ["_unit"];
|
|
|
|
_medicalEnabled = _unit getvariable QGVAR(enableMedical);
|
|
if (isnil "_medicalEnabled") exitwith {
|
|
(((GVAR(enableFor) == 0 && (isPlayer _unit || (_unit getvariable [QEGVAR(common,isDeadPlayer), false])))) || (GVAR(enableFor) == 1) || GVAR(level) == 1)
|
|
};
|
|
|
|
_medicalEnabled
|