From 1601f6a7b79f2eb4cce07009c29b1dc762b2932e Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Mon, 12 Sep 2016 17:04:48 +0200 Subject: [PATCH] Disable medical AI for remote controlled AI --- addons/medical_ai/functions/fnc_healSelf.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_ai/functions/fnc_healSelf.sqf b/addons/medical_ai/functions/fnc_healSelf.sqf index 7a1091b315..3cf8ad75e9 100644 --- a/addons/medical_ai/functions/fnc_healSelf.sqf +++ b/addons/medical_ai/functions/fnc_healSelf.sqf @@ -13,7 +13,7 @@ #include "script_component.hpp" // Player will have to do this manually of course -if (isPlayer _this) exitWith {}; +if ([_this] call EFUNC(common,isPlayer)) exitWith {}; // Can't heal self when unconscious if (_this getVariable ["ACE_isUnconscious", false]) exitWith {}; // Check if we're still treating