News:

SimuTranslator
Make Simutrans speak your language.

[code] Get maximum speed in ways

Started by Yona-TYT, June 21, 2020, 07:55:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT



This is in order to know if a way is passable or not, for example rivers that have speed "0" are not passable.  8)

Dwachs

This will give the max speed of the way including the speed limits of crossings, way objects, city roads etc. If you want the speed limit of the way the you can use way.get_desc().get_topspeed()
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on June 21, 2020, 10:58:36 AM
This will give the max speed of the way including the speed limits of crossings, way objects, city roads etc. If you want the speed limit of the way the you can use way.get_desc().get_topspeed()
This can also be very useful, since it is more generalized ;)