mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
check if unit is in a vehicle before checking the vehicle
This commit is contained in:
parent
b5c6e52416
commit
bc082783c9
@ -32,7 +32,7 @@ if ([_medic, _item] call EFUNC(common,hasItem)) exitwith {
|
||||
};
|
||||
|
||||
_return = false;
|
||||
if ([vehicle _medic] call FUNC(isMedicalVehicle) && {(vehicle _medic != _medic)}) then {
|
||||
if ((vehicle _medic != _medic) && {[vehicle _medic] call FUNC(isMedicalVehicle)}) then {
|
||||
_crew = crew vehicle _medic;
|
||||
{
|
||||
if ([_medic, _x] call FUNC(canAccessMedicalEquipment) && {([_x, _item] call EFUNC(common,hasItem))}) exitwith {
|
||||
|
Loading…
Reference in New Issue
Block a user