Problem is, LoadAnimMesh, is used for groups of meshes too, not just animated meshes.
Try using the animate command. I'm sure this will return a 0 value from the animating() function is the mesh isn't animating.
Try using the animate command. I'm sure this will return a 0 value from the animating() function is the mesh isn't animating.