turretLocal check for SP-Rearm

This commit is contained in:
He-Man 2019-01-16 19:22:20 +01:00
parent 451f7d56b3
commit 9362cd0796

View File

@ -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;
};