Type Trouble

Blitz3D Forums/Blitz3D Programming/Type Trouble

First this:
my_type.foo = New foo
type_ID = Handle(my_type)
This asigns the my_type instance a unique ID number.

Then, you can use this handle to get the type instance it refers to:
this_type.foo = Object.foo(type_ID)

Since the ID handle is a simple integer number, it can be stored as an entity's name, as in the code you posted. This allows a specific type instance to be linked to an entity.

Handle and Object aren't in the docs as they were never made 'official' commands, for some reason.