sweetgum83/scripts/reactor/6109027.js

26 lines
571 B
JavaScript
Raw Permalink Normal View History

2024-01-19 08:56:28 +00:00
function action() {
var flames = Array("g6", "g7", "h6", "h7", "i6", "i7");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f7";
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);
}