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
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