Page 1 of 1

on_entity_destroyed event called AFTER n_th_tick

Posted: Sun Aug 25, 2019 4:43 am
by ownlyme
i have one event with

Code: Select all

script.on_nth_tick(23, function(event)
and one with

Code: Select all

script.on_event({defines.events.on_entity_died,defines.events.on_player_mined_entity,defines.events.on_robot_mined_entity},function(event)
and the entity died event was called after the nth tick event, but you'd expect the entity died event to fire immediately when an entity dies.

Re: on_entity_destroyed event called AFTER n_th_tick

Posted: Sun Aug 25, 2019 5:05 am
by Rseding91
Thanks for the report however that's not a bug. on_entity_destroyed *is* called immediately when it happens. The order of the events has nothing to do with that.