Type object selection using camera pick

Blitz3D Forums/Blitz3D Programming/Type object selection using camera pick

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.

Also, using the Object() and Handle() commands, you can obtain an integer pointer to the Type, which can be used as the name of the entity. This way, you don't need to search through the list, but you can directly get the Type object that the entity belongs to.
Out of my head, that would be along the lines of this:
sh.ship = New ship
sh\sprite = CreateSprite()
NameEntity sh\sprite, Handle(sh)

..

ShipID=EntityName(PickedEntity())
If ShipID <> 0 then
   sh.ship = Object.Ship(ShipID)
   ..use sh..
End If