Kind of Entity

Blitz3D Forums/Blitz3D Beginners Area/Kind of Entity

RifRaf(Posted 2003) [#1]
Is there a way to return whether an entity is a pivot, a light, a sprite, or a mesh ????


Jeppe Nielsen(Posted 2003) [#2]
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


Graythe(Posted 2003) [#3]
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.


Graythe(Posted 2003) [#4]
Whoops! [Graythe implodes] Cheers for that Jeppe.


RifRaf(Posted 2003) [#5]
thanks