3d adventure, interacting with objects, types,

Blitz3D Forums/Blitz3D Beginners Area/3d adventure, interacting with objects, types,

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Well once you picked an entity, you could access to a type item associated with it.

For example, you could create your entities and store the entity # in a type structure; later, when you pick an entity, you can scan the type list until you find the one picked.

my_new_entity = createcube() ;create a new entity
list = new t_list ;and a new type element which stores info
list\entity = my_new_entity ;assign to the field entity the entity#

;later: scan the entity list
picked = entitypick(.....)
if picked then
   for list.t_list = each t_list
      if list\entity = picked then
        ;read the entity info here
        exit
      endif
   next
endif



Hope it has sense for you,
Sergio.