Function to evaluate WaitConditions
Posted: Sun Aug 30, 2026 4:23 pm
It would be useful to have a function that, given a LuaSchedule (or LuaTrain/LuaSpacePlatform) and an array of WaitCondition, returns true or false based on the evaluation of those conditions.
While this could be implemented in lua by a mod itself, doing it this way is bug prone and will need to be maintained whenever new types of WaitConditions are added. A native function should hopefully be able to resuse the existing game logic
While this could be implemented in lua by a mod itself, doing it this way is bug prone and will need to be maintained whenever new types of WaitConditions are added. A native function should hopefully be able to resuse the existing game logic