Community News Licensing Documentation Showcase Features Download UDK.com  
Old 11-18-2009, 03:52 PM   #1
jjobby
Junior Member
 
Join Date: Nov 2009
Posts: 12
Question [Kismet Help] Actor didn't move

I want to do a simple script. I want to spawn actor at pathnode and that spawned actor will move to another pathnode.

I've copied code and created CustomPawn class from tutorial which was posted somewhere in this forum. (Sorry, can't remember) This is the code.

PHP Code:
class CustomPawn extends UTPawn
    placeable
;

// members for the custom mesh
var SkeletalMesh defaultMesh;
var 
MaterialInterface defaultMaterial0;
var 
AnimTree defaultAnimTree;
var array<
AnimSetdefaultAnimSet;
var 
AnimNodeSequence defaultAnimSeq;
var 
PhysicsAsset defaultPhysicsAsset;

simulated function SetCharacterClassFromInfo(class<UTFamilyInfoInfo)
{
    
Mesh.SetSkeletalMesh(defaultMesh);
    
Mesh.SetMaterial(0,defaultMaterial0);
    
Mesh.SetPhysicsAsset(defaultPhysicsAsset);
    
Mesh.AnimSets=defaultAnimSet;
    
Mesh.SetAnimTreeTemplate(defaultAnimTree);
}

defaultproperties
{
    
defaultMesh=SkeletalMesh'UTExampleCrowd.Mesh.SK_Crowd_Robot'
    
defaultAnimTree=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
    
defaultAnimSet(0)=AnimSet'CH_AnimHuman.Anims.K_AnimHuman_BaseMale'
    
defaultPhysicsAsset=PhysicsAsset'CH_AnimCorrupt.Mesh.SK_CH_Corrupt_Male_Physics'    

    
Begin Object Name=WPawnSkeletalMeshComponent
        SkeletalMesh
=SkeletalMesh'UTExampleCrowd.Mesh.SK_Crowd_Robot'
        
AnimTreeTemplate=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
    
End Object

This is my kismet setup.



I've used UTActorFactoryAI in Actor Factory to create my CustomPawn class. It could spawn the actor but the actor was just standing there and didn't move at all. Plus, the actor's feet didn't align with the floor too. It stood in the air. Can someone tell me what's the problem here?
jjobby is offline   Reply With Quote
Reply

Thread Tools
Display Modes


All times are GMT -4. The time now is 01:54 PM.


Powered by vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009-2010 Epic Games, Inc. All Rights Reserved.
Video Game Voters Network