on_trigger_created_entity event not triggered
Posted: Fri Sep 25, 2020 3:12 am
Hi,
I think I didn't understand something here :
When I launch a destroyer capsule, it never triggers the event on_trigger_created_entity
despite having set trigger_created_entity to true as specified here https://lua-api.factorio.com/latest/eve ... ted_entity
I tested with both the capsule and the robot, just in case. I also tested with true as a string ("true").
I'm kinda lost here...
I think I didn't understand something here :
When I launch a destroyer capsule, it never triggers the event on_trigger_created_entity
Code: Select all
--control.lua
script.on_event(defines.events.on_trigger_created_entity,
function(event)
game.print("test")
end
)
Code: Select all
--data.lua
data.raw["capsule"]["destroyer-capsule"].trigger_created_entity=true
data.raw["combat-robot"]["destroyer"].trigger_created_entity=true
I'm kinda lost here...