SA-MP Forums Archive
Veh Atacchemnt, need help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Veh Atacchemnt, need help (/showthread.php?tid=256025)



Veh Atacchemnt, need help - Scratch - 18.05.2011

Hello good people,

Can someone describe me veh atachment and player atachment or can someone can give me a good link of a very good tutorial about that..


Sry for my Englis, i am borned with monkeys in Balcan


Re: Veh Atacchemnt, need help - MadeMan - 18.05.2011

What do you want to know about it?


Re: Veh Atacchemnt, need help - Scratch - 18.05.2011

well...everything, for starts how to atach objects on car and on players and how to get the right X,Y,Z to atach them


Re: Veh Atacchemnt, need help - MadeMan - 18.05.2011

First you have to create an object with CreateObject and save it's id

pawn Код:
new myobject;
pawn Код:
myobject = CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
Then you can attach it to a vehicle

pawn Код:
AttachObjectToVehicle(myobject, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
I guess you just have to try different offsets to find the most suitable one.

https://sampwiki.blast.hk/wiki/CreateObject

https://sampwiki.blast.hk/wiki/AttachObjectToVehicle


Re: Veh Atacchemnt, need help - Scratch - 18.05.2011

thanks mate, i got it


Re: Veh Atacchemnt, need help - iggy1 - 18.05.2011

This is an exelent way to find offsets for vehicles.
https://sampforum.blast.hk/showthread.php?tid=206939


Re: Veh Atacchemnt, need help - Scratch - 18.05.2011

uhmm what is offset' idk cause its on english, i am balcan monkey to


Re: Veh Atacchemnt, need help - iggy1 - 18.05.2011

Its the distance inbetween the objects and the vehicle.
Wiki Link AttachObjectToVehicle

The offsets are parameters 3,4 and 5.