Spawning a trailer. - 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: Spawning a trailer. (
/showthread.php?tid=573464)
Spawning a trailer. -
Ahmad45123 - 07.05.2015
Hello,
I need to spawn and attach a trailer to a linerunner.
And to do so, I need to put the trailer behind the truck, But the problem is I can't enter the trailer to /save its coordinate.. :/
How can I get its coordinate ?
And also, Do I have to just put it near the vehicle and do AttachTrailerToVehicle and it will automaticly get the correct angle ?
Re: Spawning a trailer. -
ihatetn931 - 07.05.2015
Use /save with another vehicle then just change the model, Or you can make a command to teleport yourself in to a car
Re: Spawning a trailer. -
Ahmad45123 - 07.05.2015
Quote:
Originally Posted by ihatetn931
Use /save with another vehicle then just change the model, Or you can make a command to teleport yourself in to a car
|
Just made a command to get me in any car and used it to enter the trailer.
And found that I can actually drive it too when inside it
Re: Spawning a trailer. -
ihatetn931 - 07.05.2015
Ya you can drive the trailers but they don't move very fast. You can also use that command to get in rc vehicles
Re: Spawning a trailer. -
Puppy - 07.05.2015
You don't need to. Nothing has to be streamed to anything to use AttachTrailerToVehicle. Hell, you don't even need to use a trailer ID, it can be any type / ID of vehicle(excluding a train, ofcourse, unless you're attaching another train?).
And yes, it automatically detects the proper angle for the vehicle.