mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
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
This commit is contained in:
parent
f02a3ecf1b
commit
4a6e6b006f
@ -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;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user