28.03.2013, 13:16
Hi.
I want to attach object to vehicle but with aboslute position of object.
For example:
I create object
then
But object change his default position. I want to object stay in same position if vehicle stay.
I need to know how calculate offset from vehicle.
Thanks.
I want to attach object to vehicle but with aboslute position of object.
For example:
I create object
Код:
objectid = CreateObject(50, x, y, z, rx, ry, rz, DEFAULT_OBJECT_DRAW_DISTANCE);
Код:
AttachObjectToVehicle(objectid, vehicleid, vehx-x, vehy-y, vehz-z, 0, 0, -rz);
I need to know how calculate offset from vehicle.
Thanks.