SA-MP Forums Archive
Train trailers(wagons) - 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: Train trailers(wagons) (/showthread.php?tid=626530)



Train trailers(wagons) - DusanInfinity - 16.01.2017

When I create train, it automatically creates 3 trailers(wagons), and automatically attach them to the train.
Problem is when i destroy train, trailers aren't destroyed.

When i try GetVehicleTrailer to the train, it sends 0.
Is there any check to get attached trailer ID or how to simple destroy that trailers when destroy train ?