The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on March 24, 2017, 04:33:27 AM

Title: get_way_dirs always returns zero
Post by: Yona-TYT on March 24, 2017, 04:33:27 AM

When I use "tile_x.get_way_dirs (mo_way)", it always is return zero. Maybe a error?  ???
Title: Re: get_way_dirs always returns zero
Post by: Dwachs on March 24, 2017, 07:11:01 AM
The parameter should be wt_road (or one of the other wt_* constants) not mo_way.
Title: Re: get_way_dirs always returns zero
Post by: Yona-TYT on March 24, 2017, 10:07:09 AM
Quote from: Dwachs on March 24, 2017, 07:11:01 AM
The parameter should be wt_road (or one of the other wt_* constants) not mo_way.
OK thanks.  ;)