mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Make isMedic even prettier
This commit is contained in:
parent
5589b80c70
commit
07570fccd4
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Author: Glowbal
|
||||
* Author: Glowbal, KoffeinFlummi
|
||||
* Check if a unit is any medical class
|
||||
*
|
||||
* Arguments:
|
||||
@ -21,4 +21,4 @@ _medicN = if (count _this > 1) then {_this select 1} else {1};
|
||||
_class = _unit getVariable [QGVAR(medicClass),
|
||||
getNumber (configFile >> "CfgVehicles" >> typeOf _unit >> "attendant")];
|
||||
|
||||
(_class min GVAR(medicSetting)) >= (_medicN min GVAR(medicSetting))
|
||||
_class >= _medicN min GVAR(medicSetting)
|
||||
|
Loading…
Reference in New Issue
Block a user