#Trains on editor
14 messages · Page 1 of 1 (latest)
1st of all, obviously place down train tracks
on the bottom left, there's a road index
preferably change that to a digit that u wanna remember, or just leave it as it is, but remember it
in your map's config.json
add this:
"Trains":
[
{
"VehicleID": 187,
"RoadIndex": 0,
"Min_Spawn_Placement": 0.1,
"Max_Spawn_Placement": 0.9
}
]```
im not so sure what max_spawn_placement & min_spawn_placement do, but they're not required I believe.
but what you want to do with that is, replace the vehicle id if you do not wanna use the vanilla train but a custom one, otherwise leave as it is
and change the roadindex to the number that you changed or remembered from earlier
and after loading the map, there should be a train, not sure if it works in the editor, but definitely gonna work in single/multplayer
you can check the remaining things u can change in the config.json here
https://unturned.info/Modding/mapmaking/LevelConfig
Documentation for various features of Unturned 3.0 Including modding, server hosting, and more.
thanks but i need the trails to stay in a bridge and not going down
on the editor
iirc those control the point of the track the train can spawn in (e.g. this could be used to randomize train spawn location along the track) but I'd have to check to make sure...