From 9362cd0796fe83c09097799802d1da15a81b9db2 Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 16 Jan 2019 19:22:20 +0100 Subject: [PATCH] turretLocal check for SP-Rearm --- Sources/epoch_code/compile/servicepoint/EPOCH_SP_Rearm.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Rearm.sqf b/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Rearm.sqf index 4c83e699..be6c65f1 100644 --- a/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Rearm.sqf +++ b/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Rearm.sqf @@ -18,7 +18,8 @@ private ["_line","_magname","_vehName","_vehtype"]; //[[[end]]] params ['_vehicle','_ammotype','_turret','_reloagmags','_ammocount','_costs']; -if (!local _vehicle) exitWith { +//if (!local _vehicle) exitWith { +if !(_vehicle turretLocal _turret) exitwith { _line = 'Rearm denied - Go in as driver first!'; [_line,5] call Epoch_message; };