Basically, I want to set a players skin and I am using my own 'SetSkin' function in 'Function Restarting()'(should I be?).
My SetSkin function just has this:
Switch(Sol_PRI(P.PlayerReplicationInfo).CurrentClass)
{
case CL_soldier:
self.static.SetMultiSkin(self,
"CommandoSol.Sol1","CommandoSol.Sol2", 255);
break;
}
As you can see, I am using switches to define different player classes, this is just an example of one.
With this code, the players' skin is never set correctly, and it looks like a mess of two skins.
I was wondering, where does my .utx package have to be for this code to work(would it affect the code?)? At the moment it's in my textures folder.
Also, does anyone have any other ideas as to why this code may not work?
My SetSkin function just has this:
Switch(Sol_PRI(P.PlayerReplicationInfo).CurrentClass)
{
case CL_soldier:
self.static.SetMultiSkin(self,
"CommandoSol.Sol1","CommandoSol.Sol2", 255);
break;
}
As you can see, I am using switches to define different player classes, this is just an example of one.
With this code, the players' skin is never set correctly, and it looks like a mess of two skins.
I was wondering, where does my .utx package have to be for this code to work(would it affect the code?)? At the moment it's in my textures folder.
Also, does anyone have any other ideas as to why this code may not work?