Kind of Entity

Blitz3D Forums/Blitz3D Beginners Area/Kind of Entity

Is there a way to return whether an entity is a pivot, a light, a sprite, or a mesh ????

class_name$=EntityClass$( entity )

Returns the actual 'class' of an entity. Possible return values are:

Pivot
Light
Camera
Mirror
Listener
Sprite
Terrain
Plane
Mesh
MD2
BSP

No - there is no documented system command - however it would be possible to set an collision entity type or assign an entity name at the point of creation. I hope it helps.

Whoops! [Graythe implodes] Cheers for that Jeppe.

thanks