on_entity_destroyed event called AFTER n_th_tick

Bugs that are actually features.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

on_entity_destroyed event called AFTER n_th_tick

Post 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.
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Rseding91
Factorio Staff
Factorio Staff
Posts: 16098
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_entity_destroyed event called AFTER n_th_tick

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”