Author Topic: Invisable Hand  (Read 2006 times)

I know i alread posted this but it was in wrong section so does anyone know how to get the right hand invisable ? were do i put the code?

I think it should be noted that the coding help section should not be used as a "I want to make something, so I'll ask questions until someone just makes me a script" forum.  It should be used for getting help with specific problems you come up with while coding.  We told you what functions you need to use, and did mention onmount, the place were the code needs to go.  If you want to have someone make you a script, you should post in the suggestions and requests forum asking for someone to make a script for you. You are pretending you have a real question, and are instead asking for someone to make a script for you.

I'm fairly certain that a single line of code falls well under what can be supported under Coding Help.

Code: [Select]
%player.hideNode(rhand);

Code: [Select]
%player.hideNode($rhand[0]);
%player.hideNode($rhand[1]);

Hides both hand AND hook.

Trader, rhand only exists as $rhand
  • .

Lol, wtf.  You clearly don't understand what you're talking about.

Code: [Select]
%player.hideNode(rhand);
%player.hideNode(rhook);

Oddly enough, that doesn't seem to actually work.

It does if you specify a valid %player object.

Hm, odd... rhook didn't work for me, and I used findClientByName("Falcon").player... so it should work, huh?

You could try it this way:

Code: [Select]
%player.hideNode("rhand");
%player.hideNode("rhook");

Code: [Select]
%player.hideNode($rhand[0]);
%player.hideNode($rhand[1]);

Those global variables aren't always initiated so its best not to rely on them

so this code works? where would i put it ? also did anyone acutally test it for them selves?

Code: [Select]
%player.hideNode(rhand);
%player.hideNode(rhook);
« Last Edit: May 19, 2008, 01:03:40 PM by Lance »

Well, the code assumes that you already have a function that knows the player object, stored to variable %player.  Put the code in that function.  The code provided is all you need, once you know the player object.

so how will i know the player object sry i suck at scripting

That's for a different Coding Help topic.  The question of how to hide the hand has been answered.