Made CWKPQ fully-functional, using the Expedition system (won't work with the lobby system).
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
function action() {
|
|
var flames = Array("g1", "g2", "h1", "h2", "i1", "i2");
|
|
for (var i = 0; i < flames.length; i++) {
|
|
rm.getMap().toggleEnvironment(flames[i]);
|
|
}
|
|
}
|
|
|
|
var fid = "glpq_f5";
|
|
|
|
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);
|
|
} |