The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on May 02, 2017, 01:55:18 AM

Title: [DONE] Get number of lines with "get_count()"
Post by: Yona-TYT on May 02, 2017, 01:55:18 AM
I need to get the number of lines in the list "halt_x().get_line_list()", but "get_count()" does not work. :-[
Title: Re: Get number of lines with "get_count()"
Post by: Dwachs on May 02, 2017, 06:37:51 AM
Not implemented yet. These lists are only available for iterating with foreach(..).
Title: Re: Get number of lines with "get_count()"
Post by: Yona-TYT on May 02, 2017, 06:47:38 AM
Quote from: Dwachs on May 02, 2017, 06:37:51 AM
Not implemented yet. These lists are only available for iterating with foreach(..).
As used with "get_convoy_list ()", I expected it to work with "get_line_list()" too.  :P
Title: Re: Get number of lines with "get_count()"
Post by: Dwachs on May 03, 2017, 09:17:57 AM
should be there with r8224