From 4a6e6b006ffb82322961c355ef0ff9d76cac2752 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sat, 10 Dec 2016 20:24:35 +0100 Subject: [PATCH] Update EPOCH_consumeItem.sqf - removed _buildingCountLimit, because it is not needed in this script - moved "Press 1" message, so it only comes up, if building a Part --- Sources/epoch_code/compile/EPOCH_consumeItem.sqf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf index 11801dd4..4d751f9f 100644 --- a/Sources/epoch_code/compile/EPOCH_consumeItem.sqf +++ b/Sources/epoch_code/compile/EPOCH_consumeItem.sqf @@ -121,21 +121,23 @@ switch _interactOption do { if (_otherObjects isEqualTo []) then { _object=createVehicle[_buildClass,_pos,[],0,"CAN_COLLIDE"]; _object setDir ((getDir player) - 180); + [format["Press '%1' to drop object.", "1"], 5] call Epoch_message; if (([player, _item] call BIS_fnc_invRemove) == 1) then { [_object] spawn EPOCH_simulSwap; }; - } else { + } + else { ["Building Disallowed: Frequency Unstable", 5] call Epoch_message; }; - } else { + } + else { _object=createVehicle[_buildClass,_pos,[],0,"CAN_COLLIDE"]; _object setDir ((getDir player) - 180); + [format["Press '%1' to drop object.", "1"], 5] call Epoch_message; [_object,_item] spawn EPOCH_staticMove; }; - // _object spawn EPOCH_countdown; - [format["Press '%1' to drop object.", "1"], 5] call Epoch_message; - - } else { + } + else { ["Need Energy", 5] call Epoch_message; }; };