NameEntity?

Blitz3D Forums/Blitz3D Beginners Area/NameEntity?

I don't quite understand the use of this commmand. I thought it changed the entity handle but the docs elude that it does not.

Sets an entity's name.


of which I am not quite sure what an entities name is :?

Try this:

piv=CreatePivot()
NameEntity piv, "FartKnocker"
print EntityName(piv)
WaitKey

Basically it stores a string value inside the specified entity. You can use EntityName$ ( entity ) to read the string.