Simple Code Add Vehicle Attachment? - 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: Simple Code Add Vehicle Attachment? (
/showthread.php?tid=605688)
Simple Code Add Vehicle Attachment? -
PrednizoN - 23.04.2016
to specified vehicles With a single code To add objects What kind of methods?
Re: Simple Code Add Vehicle Attachment? -
Darkwood17 - 23.04.2016
Try
AttachObjectToVehicle.
You may find this tutorial useful:
https://sampforum.blast.hk/showthread.php?tid=267742
Re: Simple Code Add Vehicle Attachment? -
ElMagicoR - 23.04.2016
AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
objectid - The object you want to attach
vehicleid - The vehicle you want to attach the object to
Float:fOffsetX - The distance between the vehicle, and the object (X direction)
Float:fOffsetY - The distance between the vehicle, and the object (Y direction)
Float:fOffsetZ - The distance between the vehicle, and the object (Z direction)
Float:fRotX - The X rotation between the object and the vehicle
Float:fRotY - The Y rotation between the object and the vehicle
Float:RotZ - The Z rotation between the object and the vehicle
Re: Simple Code Add Vehicle Attachment? -
PrednizoN - 23.04.2016
Quote:
Originally Posted by Darkwood17
|
For example this code,all 554 number vehicle added object?