b3dAnimLength

Returns the duration of the current animation sequence in milliseconds. Takes entity (animated mesh handle). Returns animation length in milliseconds (integer) or 0 if no animation active.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Returns the duration of the current animation sequence in milliseconds. Takes entity (animated mesh handle). Returns animation length in milliseconds (integer) or 0 if no animation active.

Technical Exegesis...

Returns the duration of the current animation sequence in milliseconds. Takes entity (animated mesh handle). Returns animation length in milliseconds (integer) or 0 if no animation active. Validates entity exists and type is ENTITY_ANIMATED_MESH. Checks animatedMesh pointer exists. Gets currentAnimationIndex from AnimatedMesh3D structure. If animation index valid (0 to animations.size()-1), returns animations[index].duration * 1000.

Example

Example.bam
; No example implemented yet