EarendelDevelopers / EarendelDevelopers/factorio-mods
Equipment Gantry: custom event for equipment change.
- Dominant language
- No language data
- Stars
- 17
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
raiguard — 21/07/2021
Would it be feasible to add a custom event that equipment gantry raises when it adds an equipment to something? on_player_placed_equipment doesn't fire if it was added via script
from aai-industry:
```
local function raise_event(event_name, event_data)
local responses = {}
for interface_name, interface_functions in pairs(remote.interfaces) do
if interface_functions[event_name] then
responses[interface_name] = remote.call(interface_name, event_name, event_data)
end
end
return responses
end
```
raise_event("on_gantry_changed_equipment", {gantry = LuaEntity, grid=LuaGrid, equipment_added={LuaEquipment}, items_remove={item stacks...}})
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.