hi, martonic
I'm using the German version of the B3D IDE help. It contains quite a bit of info about "object", "handle", types and so on (with examples and everything). You can find it on the German blitz site www.blitzbase.de. There is also an online version of that stuff for all of them commands you need.
For myself I use object and handle to find out which type-instance a (maybe campicked) mesh belongs to.
example:
1. type def
type ship
field mesh
field otherstuff
end type
2. creating a type-instance
ship1.ship = new ship
ship1\mesh = loadmesh("meshfile.b3d")
nameentity ship1\mesh, handle(ship1) ;this is point a)
3. picking a mesh with mouse
picked = camerapick(mycamera, mousex(), mousey())
4. identify associated object
if picked <> 0
tmpship.ship = object.ship(entityname(picked)) ;this is point b)
endif
now what you've got in tmpship is the userdefined ship object that belongs to the mesh you picked with the mouse.
This is what I do with object and handle, I guess there's a whole lot of more usefull things to do with it...
I'm using the German version of the B3D IDE help. It contains quite a bit of info about "object", "handle", types and so on (with examples and everything). You can find it on the German blitz site www.blitzbase.de. There is also an online version of that stuff for all of them commands you need.
For myself I use object and handle to find out which type-instance a (maybe campicked) mesh belongs to.
example:
1. type def
type ship
field mesh
field otherstuff
end type
2. creating a type-instance
ship1.ship = new ship
ship1\mesh = loadmesh("meshfile.b3d")
nameentity ship1\mesh, handle(ship1) ;this is point a)
3. picking a mesh with mouse
picked = camerapick(mycamera, mousex(), mousey())
4. identify associated object
if picked <> 0
tmpship.ship = object.ship(entityname(picked)) ;this is point b)
endif
now what you've got in tmpship is the userdefined ship object that belongs to the mesh you picked with the mouse.
This is what I do with object and handle, I guess there's a whole lot of more usefull things to do with it...