Coords / scripting on vehicle
#1

hello,

i want to learn something
about
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

how do you find this coords and is there something like

DeAttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

and how do I script those lines ??
Reply
#2

Use this
https://sampforum.blast.hk/showthread.php?tid=282883
Reply
#3

thats in game i just want to learn something about scriptin with
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
Reply
#4

Personally, I use 3D Studio (GMax should work too) to find the exact coordinates, as it allows me to zoom in and view the object from every angle. Just keep in mind that the origin (0,0,0) is the center of the car and that you should picture the car from its rear.

If you want to move the object to the front of the car, increase the Y values. If you want to move it to the rear, decrease the Y value. Decrease the X value to move it to the left. Increase the X value to move it to the right. Increase the Z value to move it up. Decrease the Z value to move it down.
Reply
#5

thanks man i wi'll try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)