Function to evaluate WaitConditions

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
egladil
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jun 27, 2025 8:35 pm
Contact:

Function to evaluate WaitConditions

Post by egladil »

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
Post Reply

Return to “Modding interface requests”