How to get offset positions for AttachObjectToObject function?
#1

Hello, I want to make a ship and I am wonder how to get offsets position of objects that I created already to attach each object to one parent object.
For example this:
Код:
obj[1] = CreateDynamicObject(...)
obj[2] = CreateDynamicObject(...)
obj[3] = CreateDynamicObject(...)
....
obj[n] = CreateDynamicObject(...)
for(new i;i < sizeof(obj); i++)
{
   GetObjectOffsets(obj[i], obj[1] (the object that I wanto to attach to), x, y, z, xr(rotation), yr, zr);
   AttachDynamicObjectToObject(obj[i], obj[1], x, y, z, xr, yr, zr);
}
Does anyone know how to make a function like that(GetObjectOffsets)?
Thanks alot.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)