From 73ca4f28f5df4807d3d060efad621e8626395517 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sun, 3 Dec 2023 00:16:21 +0100 Subject: [PATCH] Multigun should only heal Players or Vehicles. --- .../epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf index 800e796f..57817b32 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf @@ -52,7 +52,9 @@ switch true do { }; } else { if ("Repair_EPOCH" in _attachments) then { - _heal = true; + if (_cursorTarget isKindOf "Landvehicle" || _cursorTarget isKindOf "SHIP" || _cursorTarget isKindOf "AIR") then { + _heal = true; + }; }; }; if (_heal) then {