Author Topic: Hand Invisable  (Read 2598 times)

People have offered you general code which should help you figure out how to make it work. Aloshi's code will if put in the right functions. (the weapon images's onMount and onUnMount functions should work)

Code: [Select]
%obj.hidenode($rhand0);
%obj.hidenode($rhand1);
I believe it's $rhand[0] and $rhand[1].

oh god i suck at scripting

Code: [Select]
%obj.hidenode($rhand0);
%obj.hidenode($rhand1);
I believe it's $rhand[0] and $rhand[1].

They mean the same thing.

were do i put the code? everytime i try puting it in somewere i cant select my weapon :(

would this work?

if(%player.getObjectMount() $= %obj)
      {
         for (%i = 0; $RHand[%i] !$= ""; %i++) %player.hideNode($RHand[%i]);
}

<Is a scripting noob but will try anyway

Why do you need a for in there?

There is a set of variables that indicates the node names for each body part:

$rhand0 = rhand
$rhand1 = rhook

That for loop will look through $rhand[X] and if its a valid node, it'll hide it. Normally it'd be an effective way of accomplishing this task, except he's pinched the code from somewhere and done a Frankenstein job on it.

if(%player.getObjectMount() $= %obj){
 %player.hideNode("rhand");
 %player.hideNode("rhook");
}

A bit simpler.

Ephi, he got it from the zombie mod, I believe.