Passing entitys directly

Blitz3D Forums/Blitz3D Programming/Passing entitys directly

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.

Can some kind person please shed some light on this lil problem for me.

I'm trying to pass a handle of an object into a function, seems to work as long as the object isnt a CHILD of an object.

Here's what I'm doing:

loading 'body' as parent object
loading 'head' as child of body object

passing the handle of the object into a function

disp(body)
disp(head)

..

function disp(temp_handle#)
..
positionentity temp_handle#,1,1,1
..
end function


Works fine for body, but I get an error of 'entity does not exist' for the head. I think as its a child object, its not sending the correct pointer to the routine ?.