ent_type (ENTITY*)
Returns the type of the entity, or the type of the current level.
Parameters:
ENTITY*
- entity pointer
, or NULL for returning the level map type.
Returns:
0 - No valid type
1 - Polygon based BSP map (A4, A5, A6)
2 - Mesh based ABT map (A7)
3 - Mesh based BSP map (A7)
4 - Terrain
5 - Model
6 - Sprite
Speed:
FastExample:
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