PDA

View Full Version : custom Character Problems...



Tamahawk_R6
02-12-2010, 08:20 PM
I have been trying to do this thing for a while now, and from all the info out there I have got this far. The Base male from ut3 is in UDK with my own textures. My custom class works and loads up and is in third person but I can't figure out how to get the second texture to load up. I have this code but I don't understand how to add the second texture... Any help would be great. Also why does the base male (with the skeleton that matches up naming wise) off set weird in the AnimSets window? I used actor X from 3dsmax9 with the guy standing on 0,0,0 and his root was at the bottom in between his feet. When it loads up it seems like some of his animations are off too. Like if I faint death he lies in midair lol

I included some of the code from my customplayercontroller that i made using a couple tuts on here. And some pictures so you can see whats going on...

http://wolfspyder.com/Outside/missingtexture.png

http://wolfspyder.com/Outside/refpose.png

http://wolfspyder.com/Outside/AnimsetOff.png

// Sets the Pawns Mesh to the resources speced in the DefaultProperties
public function resetMesh(){
self.Pawn.Mesh.SetSkeletalMesh(defaultMesh);
self.Pawn.Mesh.SetMaterial(0,defaultMaterial0);

self.Pawn.Mesh.SetPhysicsAsset(defaultPhysicsAsset );
self.Pawn.Mesh.AnimSets=defaultAnimSet;
self.Pawn.Mesh.SetAnimTreeTemplate(defaultAnimTree );
}

// Called at RestartPlayer by GameType
public function rSetBehindView(bool view){
SetBehindView(view);
}

// Called at RestartPlayer by GameType
public function rSetCameraMode(name cameraSetting){
SetCameraMode(cameraSetting);
}

DefaultProperties
{
bBehindView=True

defaultMesh=SkeletalMesh'Ax.Mesh.Male2'
defaultMaterial0=Material'Ax.Materials.MaleUT3'

defaultAnimTree=AnimTree'CH_AnimHuman_Tree.AT_CH_H uman'
defaultAnimSet(0)=AnimSet'CH_AnimHuman.Anims.K_Ani mHuman_BaseMale'


}

Any Help is Appreciated Thanks!

I think it's something with self.Pawn.Mesh.SetMaterial(0,defaultMaterial0); but not sure I tried some stuff but it just breaks the editor when running it.