User Tools

Site Tools


modding:developerinfo:tunnels

Tunnels

Overview

A bridge configuration files specifies a set of parameters to define the properties, dimension, features, and visuals of tracks. They are stored in .lua files in the folder res\config\tunnel\.

The file has the following format:

function data()
return {
	name = _("Standard tunnel"),
	carriers = { "ROAD" },   -- or { "RAIL" }
	portals = {
		{ "railroad/tunnel_old.mdl" },
		{ "railroad/tunnel_double_old.mdl" },
		{ "railroad/tunnel_large_start.mdl", "railroad/tunnel_large_rep.mdl", "railroad/tunnel_large_end.mdl" },
	},
	cost = 1200.0
}
end
modding/developerinfo/tunnels.txt · Last modified: 2019/03/19 10:18 (external edit)