Set Mechanical Parts as event exclusive item for removal on exit

This commit is contained in:
Charlie Unfricht
2022-08-26 01:27:12 -04:00
parent 2ed69407de
commit a67666af62
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ function init() {
function setup(level, lobbyid) {
var eim = em.newInstance("q3239_" + lobbyid);
eim.setExclusiveItems([4031092]);
return eim;
}

View File

@@ -36,7 +36,7 @@ function action(mode, type, selection) {
}
if (eim == null) { // Not in instance, ready to enter
cm.removeAll(4031092); // This doesn't belong here - these should be removed on exit, handled by portal script
cm.removeAll(4031092); // This handling is done in the portal script and in the event end, just for legacy purposes here
if (!em.startInstance(cm.getPlayer())) {
cm.sendOk("Someone else is already gathering some parts for me. Please wait until the area is cleared.");
}