1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Filter player medics ()

This commit is contained in:
BaerMitUmlaut 2016-09-20 16:01:54 +02:00 committed by commy2
parent c395af4c21
commit b1f6973772

@ -19,7 +19,7 @@
if ([_this] call EFUNC(medical,isMedic) || {vehicle _this != _this}) exitWith {false};
{
if ([_x] call EFUNC(medical,isMedic)) exitWith {
if ([_x] call EFUNC(medical,isMedic) && {!([_x] call EFUNC(common,isPlayer))}) exitWith {
_this setVariable [QGVAR(assignedMedic), _x];
true
};