hi everyone
i created 2 character and imported them in UDK then i created my own Animtree and PhysicAssets
everything works fine exepct when my character (or my AI pown) die ,he become a mess like in the picture below
i tried to put a custom animation in the animtree when he become a rigidbody but nothing change :/

here is my custom pawn code if something is missing please tell me
i created 2 character and imported them in UDK then i created my own Animtree and PhysicAssets
everything works fine exepct when my character (or my AI pown) die ,he become a mess like in the picture below
i tried to put a custom animation in the animtree when he become a rigidbody but nothing change :/

here is my custom pawn code if something is missing please tell me
Code:
//============================================================================== // AlphaPawn // //============================================================================== class AlphaBotPawn extends UTPawn; //disabled default functions var bool bCanDodge; var bool bCanFire; //custom character var SkeletalMesh defaultMesh; var MaterialInterface defaultMaterial0; var AnimTree defaultAnimTree; var array<AnimSet> defaultAnimSet; var AnimNodeSequence defaultAnimSeq; var PhysicsAsset defaultPhysicsAsset; simulated event PostBeginPlay() { Super.PostBeginPlay(); } // initialize the animtree nodes simulated event PostInitAnimTree(SkeletalMeshComponent SkelComp) { super.PostInitAnimTree(SkelComp); } // disable teleport effect function PlayTeleportEffect(bool bOut, bool bSound); simulated function Tick(float DeltaTime) { Super.Tick( DeltaTime ); } simulated function SetCharacterClassFromInfo(class<UTFamilyInfo> Info) { Mesh.SetSkeletalMesh(defaultMesh); Mesh.SetPhysicsAsset(defaultPhysicsAsset); Mesh.AnimSets=defaultAnimSet; Mesh.SetAnimTreeTemplate(defaultAnimTree); } defaultproperties { GroundSpeed = 190.0 HealthMax = 100 Health = 100 bCanFire=true; bCanDoubleJump=false bCanJump=false; bCanDodge=false; CrouchedPct=+0.6 defaultMesh=SkeletalMesh'CH_Mafioso_Test.mafioso_test' defaultPhysicsAsset=PhysicsAsset'CH_Mafioso_Test.mafioso_test_Physics' defaultAnimTree=AnimTree'CH_Test7_Anims.CH_Test7_AnimTree' defaultAnimSet(0)=AnimSet'CH_Test7_Anims.CH_Test_Anims_Base' }
Comment