AttachObjectToVehicle ???
#8

Quote:
Originally Posted by IzadorO
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle

It's a function in which attaches a previous created object to a vehicle.

Example:

ExampleObject = CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, FloatrawDistance);

AttachObjectToVehicle(ExampleObject, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
Quote:
Originally Posted by CalvinC
Посмотреть сообщение
You can just use the map editor to get the coordinates and model id, place the vehicle at coordinates 0, 0, 0 and then you'll get the correct offsets.
Use pawno to open your script and use AttachObjectToVehicle.
Here's a tutorial if needed:
https://sampforum.blast.hk/showthread.php?tid=267742
how to create the object , and get the coordinates of AttachObjectToVehicle
Reply


Messages In This Thread
AttachObjectToVehicle ??? - by quochuy - 01.04.2015, 09:25
Re: AttachObjectToVehicle ??? - by CalvinC - 01.04.2015, 09:28
Re: AttachObjectToVehicle ??? - by Vince - 01.04.2015, 09:32
Re : AttachObjectToVehicle ??? - by IzadorO - 01.04.2015, 09:35
Re: AttachObjectToVehicle ??? - by quochuy - 01.04.2015, 09:38
Re: AttachObjectToVehicle ??? - by quochuy - 01.04.2015, 09:45
Re: AttachObjectToVehicle ??? - by CalvinC - 01.04.2015, 09:46
Re: AttachObjectToVehicle ??? - by quochuy - 01.04.2015, 09:53
Re: AttachObjectToVehicle ??? - by Golf - 01.04.2015, 10:02
Re: AttachObjectToVehicle ??? - by quochuy - 01.04.2015, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)