[Help]Attaching an Object to a truck...
#1

Sup' Guys , i have a question.
look i want to attach an object to a truck like in this image but i dont know how.
AttachObjecttoVehicle is easy but i dunno how to take the cords :S...
Who can help me? look here i have the cords and stuff.
Truck:
MODEL: 578
X: 1548.4509277344
Y: -1610.1976318359
Z: 14.1328125

Object:
MODEL: 3572
X: 1546.7492675781
Y: -1610.1632080078
Z: 15.233882904053


Okay who can help me , what i have to do?
Thanks - Wosy
Reply
#2

The first three parameters are x, y, and z offset, the next three are rotation angles
Try AttachObjectToVehicle(vehicleid,0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
and then adjust the values slightly until the object appears where you want it to appear.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)