Make Security Camera killable after talking to control device

This commit is contained in:
P0nk
2022-08-29 22:04:07 +02:00
parent 535b6c3e8e
commit 17ae269cc9

View File

@@ -24,7 +24,34 @@
Control Device
*/
var status;
function start() {
cm.sendNext("This control device seems to be monitoring something...");
cm.dispose();
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.sendAcceptDecline("You can operate the automated security system using the control unit. Would you like to deactivate the automated security system?");
return;
} else if (status == 1) {
cm.weakenAreaBoss(7090000, "The automated security system has been deactivated. The intruder alarm will shut down.");
}
cm.dispose();
}
}