mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Zeus - FIX ace_zeus_fnc_moduleSetMedicalVehicle setting wrong variable (#7107)
* FIX set medical vehicle zeus module
Since https://github.com/acemod/ACE3/pull/6933 `isMedicalVehicle` should be use instead of `medicClass`
* isMedicalVehicle is a boolean
44050df98b/addons/medical_treatment/functions/fnc_isMedicalVehicle.sqf (L20)
This commit is contained in:
parent
06996d30e1
commit
66f62bb1a2
@ -40,9 +40,9 @@ if !(["ACE_Medical"] call EFUNC(common,isModLoaded)) then {
|
||||
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
|
||||
[LSTRING(OnlyNonCaptive)] call FUNC(showMessage);
|
||||
} else {
|
||||
private _medicN = GETVAR(_unit,EGVAR(medical,medicClass),0);
|
||||
if (_medicN < 1) then {
|
||||
_unit setVariable [QEGVAR(medical,medicClass), 1, true];
|
||||
private _medicN = GETVAR(_unit,EGVAR(medical,isMedicalVehicle),false);
|
||||
if !(_medicN) then {
|
||||
_unit setVariable [QEGVAR(medical,isMedicalVehicle), true, true];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user