From 94877c1ce6b0d8a323c3b9f1ba3b0d45adb07839 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Mon, 2 Dec 2013 10:05:20 -0600 Subject: [PATCH] cannot perform an upgrade while still inside a vehicle --- SQF/dayz_code/compile/player_upgradeVehicle.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQF/dayz_code/compile/player_upgradeVehicle.sqf b/SQF/dayz_code/compile/player_upgradeVehicle.sqf index 99eff9c34..a9a2484ac 100644 --- a/SQF/dayz_code/compile/player_upgradeVehicle.sqf +++ b/SQF/dayz_code/compile/player_upgradeVehicle.sqf @@ -7,6 +7,8 @@ private ["_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_remov if(DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_PLAYER_52") , "PLAIN DOWN"]; }; DZE_ActionInProgress = true; +if (vehicle player != player) exitWith {cutText ["\n\nYou cannot perform an upgrade while still inside a vehicle.", "PLAIN DOWN"]}; + // look for nearest vehicle _findNearestVehicles = nearestObjects [player, ["LandVehicle"], 10]; _findNearestVehicle = [];