Veh Atacchemnt, need help
#1

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
Reply
#2

What do you want to know about it?
Reply
#3

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
Reply
#4

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
Reply
#5

thanks mate, i got it
Reply
#6

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

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

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

The offsets are parameters 3,4 and 5.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)