![]() |
obj.hide() problems
I'm having some problems with the
HTML Code:
obj.hide()HTML Code:
for (temp.i: npcs) {HTML Code:
function onToggleVis(mode) {HTML Code:
obj.hidetoclients = booleanThanks |
I feel like using 'mode' would cause a problem, keywords/built-in variables can be jerks sometimes.
|
It's detecting the right function & mode, so it's not that =[
I just want to hide the object, so it doesn't block the player =[ |
PHP Code:
|
Quote:
Quote:
PHP Code:
|
nope @ tig =[
|
PHP Code:
|
at times like this firebug would be great for debugging graalscript
|
Quote:
On server-side to change some other npc you normally have to: npc.visible = false; npc.trigger("updateorso",""); That sets the visibility to false and is also waking up the npc so that the new attributes are sent to the clients. The original code looks a little bit fishy to me though, you are hiding when you pass "true" and show when you pass "false"? That can confuse the one who is calling the function and thinks it will actually show when you call it with parameter "true". |
Thanks guys- greathelp :)
|
| All times are GMT +2. The time now is 07:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.