ArcBasicDocs

LoadAnimSeq

Loads an animation sequence from a file.

LoadAnimSeq ( entity,filename$ )

Parameters

entity
the entity's handle.
filename$
the model file: .glb, .gltf, .fbx, .x or .3ds.

Description

Loads the animations from a model file and adds them to an entity already loaded with LoadAnimMesh, so separate animation files can share one model. Every animation in the file is added, and they play on the entity if its parts (or bones) have the same names. Gives back the number of the longest one added, usually the main one, or -1 if none could be added; FindAnimSeq finds the others by name.

See also