Add on_robot_repaired_entity Event

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
DaShoup
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Dec 31, 2016 7:15 am
Contact:

Add on_robot_repaired_entity Event

Post by DaShoup »

TL;DR
Create a new event that triggers when a construction robot repairs an entity, similar to the on_player_repaired_entity event.
What ?
Add a robot equivalent to the on_player_repaired_entity event, and associated event filters to the Lua API. Also, add an additional field to the RepairedEntityEventFilters for players and robots to specify if the event is the last event i.e. the entity has reached full health or the repair pack stack has been depleted.
Why ?
Personally, I'm working on a mod for one use/limited uses construction bots, similar to the nanobots mod, that would use the native personal roboport network rather than periodically scanning the surface for ghosts in range of the player. This change would allow for limited Lua scripting and better performance. It would also allow for use in the roboport logistic networks.

-DaShoup
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: Add on_robot_repaired_entity Event

Post by moon69 »

Yes please!

I wanted to use a construction bot repairing as part of a staged build process for entities.
Post Reply

Return to “Modding interface requests”