Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.