SA-MP Forums Archive
Need help to script AttachTrailerToVehicle - 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: Need help to script AttachTrailerToVehicle (/showthread.php?tid=315175)



Need help to script AttachTrailerToVehicle - (ETR)Geto244 - 02.02.2012

Im intrested in that, i want to make the real roadtrain like in that video:
[ame]http://www.youtube.com/watch?v=7YyMinSMi8Q[/ame]
I tried and tried but i cant attact the trailer to trailer.
Can someone can help me whit that? I dont want it as comand, just that i can attach it.


Re: Need help to script AttachTrailerToVehicle - Rokzlive - 02.02.2012

It will take alot of scripting, because esentially whats happening (as i can interpret) the trailors are simply following the position and rotation of the one infront of it. If it can be done, i guess maybe do AttachTrailerToVehicle(traileridbeingattached,trai leridtoattachto). Also, it needs to be a command, or else the script wont recognise(unless you make some kickass fuction) that youve backed up to a trailer with another trailer.


Re: Need help to script AttachTrailerToVehicle - (ETR)Geto244 - 02.02.2012

U see, it has been done. Ok, if it must be as command than let it be command, i just need it to scripted somehove. Maeby there is some smart guy who can make it easyli Sry my bad english.


Re: Need help to script AttachTrailerToVehicle - mineralo - 02.02.2012

read this https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle its will help you, you can make in cmds just need to think a bit


Re: Need help to script AttachTrailerToVehicle - (ETR)Geto244 - 03.02.2012

i tried whith that but it didnt help me :S mabey i did simething wrong, i dont know but didnt work for me :S