I'm having some problems with the
It's finding the NPCs (using a loop)
HTML Code:
for (temp.i: npcs) {
if (temp.i.isinclass("event_block")) temp.i.trigger("onToggleVis", true/false);
}
in the NPC
HTML Code:
function onToggleVis(mode) {
if (temp.mode == true) this.hide();
else this.show();
}
Although, it calls the function (onToggleVis) but it won't hide the NPC. I saw this
HTML Code:
obj.hidetoclients = boolean
when I set it to true, it hides no problem. It just won't come back!
Thanks