Game Development Community

Objects id

by Mark Miley · in Torque Game Engine · 06/15/2004 (8:39 pm) · 3 replies

I've been searching through the forum and haven't been able to find the answer to my question. I'm using an initcontainerradiussearch (in c++) and the return type on containersearchnext is an object ID. I'm not sure how to use that. How would I get the actual object from the server id? I would like to be able to get the actual position of the object for tracking purposes. I can get the distance, but I want the actual object...I'm trying to get projectile tracking working. So everytick I need to know where my target object is, so how do I get the object from the id? Hope that makes sense.

#1
06/15/2004 (9:07 pm)
Do a search in the code for Sim::findObject.
That will tell you everything you need.
#2
06/16/2004 (7:03 am)
Are you scripting or coding in c++? If scripting, you can do 1234.getTransform() and such.
#3
06/16/2004 (9:45 am)
Thanks Robert...got it.