Class Entity?

Blitz3D Forums/Blitz3D Programming/Class Entity?

Yue(Posted 2016) [#1]
How can differences different types of entities exist ?, all have properties, position x, and z, for example but some are not applied materials such as lights.

What I want is a way to identify what type of entity is a window for setting the respective properties.

For example a cube, you can paint a color, but light not.

Any suggestions?




Bobysait(Posted 2016) [#2]
use the EntityClass(entity) function.
it will return a string which will be one of :
"Pivot", "Camera", "Light", "Mesh", "Terrain", "Sprite", "Plane", "Mirror", or "Listenner" (I don't remember if it takes one or two "n")
So you can identify the entity "type"


Yue(Posted 2016) [#3]
@Bobysait Thanks You.