Page 1 of 1

Train restriction

Posted: Wed Sep 02, 2020 9:25 pm
by SLywnow
I want to make my own mode of transport based on the train. The main problem is that I need that my transport could not ride on the rails from the original game, but only on mine, and accordingly the train from the original game could not ride on my rails, it is desirable not to come into conflict with mods like Realistic electric train
I looked in the documentation, I don't see a variable that would determine which rails a train can travel on.
Is this even possible? Cargo Ships is not considered, it simply States that the ship can only be placed on the water, same as rails, in other respects it is a normal railway.

Re: Train restriction

Posted: Wed Sep 02, 2020 10:42 pm
by DaveMcW
No, it's not possible.

Cargo ships uses collision mask to restrict placement, but if you build a connecting path between water and land, ships will travel on rails.

Re: Train restriction

Posted: Thu Sep 03, 2020 12:31 pm
by robot256
Right, the only way is for script to perform the check every time an entity is placed to ensure it matches, and delete it otherwise.