PickedEntity seems not constant, help

Blitz3D Forums/Blitz3D Programming/PickedEntity seems not constant, help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you don't need to know anything other than the objects name then there is no need to store a type handle there, simply store the name of the object type ..

Somethig like ...

global Building = Loadmesh("Building.B3d" ) : nameentity Building, "Building"

.....
Camerapick ( Camera, mousex(), mousey() )
If PickedEntity() > 0
Type_Of_Entity_Selected$ = EntityName( PickedEntity() )
Endif

Stevie