Posts: 303
Threads: 56
Joined: Jun 2009
Reputation:
0
Get the coords of a railway point, then put them into the CreateVehicle or AddStaticVehicle function with the train's model.
Nonameman
Posts: 1,157
Threads: 176
Joined: Jun 2009
Reputation:
0
Train can be spawned only on railway.so just get the XYZ of the railway
Posts: 1,954
Threads: 79
Joined: Aug 2009
Reputation:
0
And as written in the wiki,trains can only be created with AddStaticVehicle and not CreateVehicle.
Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
Alright but how do you spawn passenger coaches? Like that's the engine, how do you spawn the coaches behind? or how you make them like connect each other?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
If I remember correctly it just spawns the train as a whole. So the engine and two or three carriages at once.
Posts: 217
Threads: 13
Joined: Jul 2012
Reputation:
0
The passenger cars will spawn when you spawn the train. @Vince, you are correct.