The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Andarix on May 27, 2026, 08:51:38 AM

Title: schedule_entry_x Class
Post by: Andarix on May 27, 2026, 08:51:38 AM
schedule_entry_x Class Reference (https://doc.simutrans-germany.com/Simutrans-Squirrel-API/classschedule__entry__x.html)

It is possible to set the waiting time and minimum load.

However, it appears that it is not possible to query these values.
Yet, particularly in passenger transport, it is essential to be able to modify these values.
Title: Re: schedule_entry_x Class
Post by: prissi on May 27, 2026, 12:18:03 PM
Does not xzy.load returns this value? It looks like wait and load together with x,z,y are members of the schedule entry.
Title: Re: schedule_entry_x Class
Post by: Andarix on May 27, 2026, 01:35:08 PM
schedule_entries = line.get_schedule().entries

schedule_entries[0].wait
schedule_entries[0].load

works, thank you