05.11.2018, 17:58
(
Последний раз редактировалось StRaphael; 06.11.2018 в 09:55.
)
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:
Does anyone know how to make a function like that(GetObjectOffsets)?
Thanks alot.
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); }
Thanks alot.