Attaching vehicles to vehicles?
#1

Hey,
I was interested to know on how I was able to attach a vehicle to another vehicle.

An example would be, locking vehicles onto the packer.
(www.vs-rp.com/Development/Temp/VehLock.png)


Cheers,
Deal.
Reply
#2

I think you cant.
Reply
#3

something like this? : https://sampforum.blast.hk/showthread.php?tid=93095
Reply
#4

Yeah I saw that one my search just prior to posting this but being as laggy as it is and being able to attach multiple vehicles to one vehicle at once is kinda what I was after. I suppose I could take that script and pull it apart and try make something myself but was just curious as to if there was an easier way or not.

Cheers for your assistance anyway.
Reply
#5

I had an idea how to attach a vehicle to other one without lagging like that timer, I thought to create a blank object and to somehow to attach to both vehicle and its will attach.
just an idea
Reply
#6

the only way is the link to the post by "Gamer_Z".
Why ?

Because the only way is to run a timer and set that vehicle pos to the same as your vehicle but just the X,Y,Z adjusted.

There might be a less lagy way that i think of but that will require a timer as well which will not look so lagy.
instead of setting the vehicle pos set its velocity!
by that way it will have the same velocity as the vehicle your driving and not look lagy at all as it will be smooth even on slow timer.
Reply
#7

I don't think you can set the velocity on a vehicle that has no driver. Not sure, though.
Reply
#8

Gah, that is what they need in the next patch/update of samp. AttachVehicleToVehicle(VehicleID, X, Y, Z RotX, RotY, RotZ) or something similar.

Thanks for your help Guys, would be good to be able to get this to work.
Reply
#9

Quote:
Originally Posted by Vince
Посмотреть сообщение
I don't think you can set the velocity on a vehicle that has no driver. Not sure, though.
yep done a test just now, doesn't work if the vehicle has no driver ;X
but with a driver it works/looks really well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)