sweetgum83/scripts/reactor/6109022.js
2024-01-19 03:56:28 -05:00

26 lines
571 B
JavaScript

function action() {
var flames = Array("a6", "a7", "b6", "b7", "c6", "c7");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f2";
function touch() {
var eim = rm.getEventInstance();
if (eim.getIntProperty(fid) == 0) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if (eim.getIntProperty(fid) == 1) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}