ent_bones ( ENTITY*);

This instruction returns the number of the entities' bones, or 0 if the entity has no bones.

Parameters:

ENTITY* - entity pointer

Returns:

Number of bones, or 0 if the entity has no bones.

Speed:

Fast

Example:

if (ent_bones(my) > 0)
{
  ent_animate(me,NULL,0,0); // reset the skeleton
} 

See also:

ent_animate, ent_skins, ent_frames ► latest version online