Page 1 of 1
Raise events when train stop limits are changed
Posted: Tue Oct 24, 2023 10:12 pm
by notnotatschool
I'd like it if it were possible for mods to react to train stop limits changing. I imagine this would raise an event with the associated train stop, the old limit, and the new limit. This would be useful for a mod that I am working on but have not yet released.
Re: Raise events when train stop limits are changed
Posted: Fri Jun 07, 2024 4:12 am
by spam38
I second this suggestion. I've been playing around with a train scheduling mod myself, and it would be useful to be able to have an event handler trigger when a stop "requests" that a train be sent to it by increasing its trains_limit property.
Re: Raise events when train stop limits are changed
Posted: Sun Apr 26, 2026 11:06 am
by ILLISIS
+1
Re: Raise events when train stop limits are changed
Posted: Wed Jul 29, 2026 5:47 am
by EvilPLa
I was just about to make that request myself.
on_train_stop_changed() when Limit (incl. deactivate) or priority changes.
The vanilla train system is almost complete, the one thing I miss is that requests get fulfilled in the order they appear. This would be possible with this kind of event via a simple mod.