Poll

I am stupid.

Yes.
Yes.
Yes.
Yes.
Yes.

Author Topic: Script_Disappear  (Read 682 times)

Yeah, yeah, spammy and abusive.
It isn't working for the moment, anyway, but it IS super admin only.
Anyway, it isn't working.
Here's the script.

function serverCmdDisappear(%client)
{
   if(%client.isSuperAdmin)
   {
      %player.hideNode("All");
   }
}


So yeah, there's a horribly glaring error in here.
Also, I don't intend to even attempt to release it; it's just a stupid practice.

You almost got it, I think you just have to change "All" to "ALL". lol

New script:

function serverCmdDisappear(%client)
{
   if(%!client.isSuperAdmin)
   {
      %player.hideNode("ALL");
   }
}

However, now it doesn't even do anything. No errors, no nothing. (I changed "All" to "ALL" and "if(%client" to "if(%!client".

Hmmm.
That didn't help, it seems.
The console says that there is an error in the "c" in "client"

Found another problem.
if(%!client.isSuperAdmin) changed to if(!%client.isSuperAdmin), and that fixed it partially, but it still doesn't WORK.

Found another problem.
if(%!client.isSuperAdmin) changed to if(!%client.isSuperAdmin), and that fixed it partially, but it still doesn't WORK.
Super Admins can't do the command, but everyone else can?

Oh...
I really don't know what I am doing, do I?
That's the exclamation point, isn't it?
Deleting...
At this stage, the script reads as follows.

function serverCmdDisappear(%client)
{
   if(%client.isSuperAdmin)
   {
      %player.hideNode("head");
   }
}

%player isn't defined

Should it be %client.player?


Thanks.
It now reads as follows.
function serverCmdDisappear(%client)
{
   if(%client.isSuperAdmin)
   {
      %client.player.hideNode("head");
   }
}
However, it doesn't work!

Thanks.
It now reads as follows.
function serverCmdDisappear(%client)
{
   if(%client.isSuperAdmin)
   {
      %client.player.hideNode("head");
   }
}
However, it doesn't work!

headskin

Aha!
Got it to work!
Changed node from "head" to "ALL" which was what I wanted in the first place.
Thanks for your help, Kalphiter and MegaScientifical!

it's "headSkin" if you want to hide the hide anyway

I started out with "All" then changed to "ALL" then changed to "head" because I irrationally thought that it was because of "ALL" that it wasn't working.