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



Adding Train - CoaPsyFactor - 15.10.2014

Hi everyone, I was just wondering does anyone knows why is adding trains allowed only as static vehicle, and is it possible to map railroad and spawn train there and drive it


Re: Adding Train - Anzipane - 15.10.2014

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
Hi everyone, I was just wondering does anyone knows why is adding trains allowed only as static vehicle, and is it possible to map railroad and spawn train there and drive it
The train can only be spawned in pre-load (AddStaticVehicle) because it's a speical kind of vehicle: since it can have an undetermined number of passanger coaches, the server needs to know the exact amount of them because they count as indipendent vehicles with their own vehicleid.
And no, unfortunately you can't create custom train tracks.


Re: Adding Train - CoaPsyFactor - 17.10.2014

Thanks