Author Topic: Get names of the signals  (Read 228 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

Get names of the signals
« 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:
Code: [Select]
tile.find_object(mo_roadsign).get_name()

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4233
  • Total likes: 169
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Get names of the signals
« Reply #1 on: July 17, 2017, 06:24:55 PM »
Please test r8267: I added class sign_x, see http://dwachs.github.io/simutrans-sqapi-doc/
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Re: Get names of the signals
« Reply #2 on: July 18, 2017, 02:34:46 PM »
Please test r8267: I added class sign_x, see http://dwachs.github.io/simutrans-sqapi-doc/

It works fine, thanks !!.