Entity Name (handle)

Blitz3D Forums/Blitz3D Programming/Entity Name (handle)

danjo(Posted 2007) [#1]
when an entity is picked for example, you can get the picked entity and returns a number/value for the entity in question.
how do you retrieve its actual name you have given it.
eg: you have an entity - cube=createcube()
if its picked, how am i supposed to gets its name "cube" rather than the value it is?


Stevie G(Posted 2007) [#2]
You could use ... nameentity(cube), "CUBE"

TheName$ = entityname( PickedEntity )

Stevie


danjo(Posted 2007) [#3]
ah cool - i was skirting around it, and knew it shouldnt be too hard.