NameEntity?

Blitz3D Forums/Blitz3D Beginners Area/NameEntity?

BlueWolf(Posted 2004) [#1]
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 :?


Beaker(Posted 2004) [#2]
Try this:

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


Zethrax(Posted 2004) [#3]
Basically it stores a string value inside the specified entity. You can use EntityName$ ( entity ) to read the string.