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 ?.
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 ?.