Detecting rail planner active

Place to get help with not working mods / modding interface.
benlove007
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Oct 11, 2025 5:23 pm
Contact:

Detecting rail planner active

Post by benlove007 »

When processing an on_selected_entity_changed event, I would like to know if the rail planner is active (as distinguished from a rail item in the cursor stack). In my research, I don't think this is possible, but perhaps I missed something?

If this is not possible, I would like to request an API feature for this. I don't need to interact with the rail planner at all; just read whether it is active. The reason for this is to ascertain the user's intent for selecting an entity. If the rail planner is active, the user is trying to place rails, rather than interact with the selected entity in some other way. In that case, I would abort the normal behaviour I intended for the selected entity event.
Post Reply

Return to “Modding help”