View Single Post
  #1  
Old 02-08-2011, 11:15 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
obj.hide() problems

I'm having some problems with the
HTML Code:
obj.hide()
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
__________________
Reply With Quote