The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on July 17, 2017, 04:30:25 PM

Title: Get names of the signals
Post by: Yona-TYT on July 17, 2017, 04:30:25 PM

I need to get the name of the signals to correct a small error in the code that places the signals.

Example: tile.find_object(mo_roadsign).get_name()
Title: Re: Get names of the signals
Post by: Dwachs on July 17, 2017, 06:24:55 PM
Please test r8267: I added class sign_x, see http://dwachs.github.io/simutrans-sqapi-doc/
Title: Re: Get names of the signals
Post by: Yona-TYT on July 18, 2017, 02:34:46 PM
Quote from: Dwachs on July 17, 2017, 06:24:55 PM
Please test r8267: I added class sign_x, see http://dwachs.github.io/simutrans-sqapi-doc/ (http://dwachs.github.io/simutrans-sqapi-doc/)

It works fine, thanks !!.