Check Slot for Veh Upgrade

This commit is contained in:
He-Man 2017-10-17 18:31:14 +02:00
parent a1b8227831
commit 6590d3d655

View File

@ -33,6 +33,9 @@ _classUpgrade = getarray (_config >> _vehType >> "upgradeToVehicle");
if (_classUpgrade isequalto []) exitwith { if (_classUpgrade isequalto []) exitwith {
["Vehicle not upgradeable",5] call Epoch_message; ["Vehicle not upgradeable",5] call Epoch_message;
}; };
if ((_veh getvariable ["Vehicle_Slot","-1"]) isequalto "-1") exitwith {
["Vehicle not upgradeable",5] call Epoch_message;
};
{ {
_classUpgrade = _x; _classUpgrade = _x;