SA-MP Forums Archive
Coords / scripting on vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Coords / scripting on vehicle (/showthread.php?tid=401411)



Coords / scripting on vehicle - firemanjv - 22.12.2012

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 ??


Re: Coords / scripting on vehicle - DaRk_RaiN - 22.12.2012

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


Re: Coords / scripting on vehicle - firemanjv - 22.12.2012

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);


Re: Coords / scripting on vehicle - Vince - 22.12.2012

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.


Re: Coords / scripting on vehicle - firemanjv - 22.12.2012

thanks man i wi'll try it