Announcement

Collapse
No announcement yet.

playanimation Function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    playanimation Function

    Hello friends
    I have a question about "PlayAnimation" function
    I want to use it for my pawn and I donna how I can use this function
    I mean I want to play my pawn animations using this function but I couldn't find any source to learning that.
    does anyone have any Idea?

    #2
    I'm having a lot of troubles with this myself, but the idea is that when you create the mesh object to attach to your pawn, you attach an "AnimSet" and a MeshSequence to it too. Import these from your modelling software of choice (e.g. Blender) and turn the .fbx files into packages using the Content Browser. Something like this should do it.

    Assuming you have those packages, here's some example code from a project of my own.

    Code:
    Begin Object Name=WPawnSkeletalMeshComponent
              SkeletalMesh=SkeletalMesh'BirdPackage.Boobooday_Packed'
              AnimSets(0)=AnimSet'BirdPackage.Armature'
              Animations=MeshSequenceA
              AnimTreeTemplate=None
              Translation=(Z=-45.0)
              Materials(0)=Material'EditorMaterials.WidgetMaterial_X'
              LightEnvironment=MyLightEnvironment
              Scale3D=(X=5.00,Y=5.00,Z=5.25)
        End Object
    Again, this really isn't the best answer you could get, but I hope it's helpful all the same.

    Comment

    Working...
    X