Author Topic: Player Nodes  (Read 595 times)

Long Version~Ok, I am trying to make it so on client spawn set the players chest decal to the Ranger/Bandit chest decal also I need to set the players hat node so they have nothing equiped same with the chest node.

Short Version~How do I make it so the player has no hat, and chest accent, Also how do I change the decal.

Code: [Select]
package Cloth
{
   function GameConnection::createPlayer(%client, %position)
   {
      Parent::createPlayer(%client, %position);   
        if(%client.job < 1000)
{
%client.player.setNodeColor("chest","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("pants","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("lhand","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("rhand","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("larm","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("rarm","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("lshoe","0.107 0.336 0.014 1.000");
        %client.player.setNodeColor("rshoe","0.107 0.336 0.014 1.000");
    }
   }
};
activatePackage(Cloth);

For the chest,hat and stuff, use %obj.hideNode, to bring them back %obj.unHideNode.

For the decal, %player.setDecalName.

Hmm ok, I have tried that before and it stayed the same. Also with the decal I will try that method but how would it look? %player.setDecalName("Name"); ?