I decided to do some testing and got all the answers I needed :D
I killed all enemies at the same time with the console command from the wiki, but using entity.die() instead of destroy(). https://wiki.factorio.com/Console#Kill_all_enemies
That way the events on_entity_died and on_post_entity_died ...
Search found 4 matches
- Sat Jun 06, 2020 12:55 pm
- Forum: Modding help
- Topic: Relation between on_player_died and on_post_entity_died
- Replies: 1
- Views: 558
- Wed Jun 03, 2020 4:12 pm
- Forum: Modding help
- Topic: Relation between on_player_died and on_post_entity_died
- Replies: 1
- Views: 558
Relation between on_player_died and on_post_entity_died
For the mod I'm writing I like to use all the data in on_post_entity_died for when the player/character dies.
The only problem is that there is no way to get the player who died. I know that the corpse in the event contains character_corpse_player_index but what if there is a mod installed that ...
The only problem is that there is no way to get the player who died. I know that the corpse in the event contains character_corpse_player_index but what if there is a mod installed that ...
- Tue Oct 29, 2019 1:20 pm
- Forum: Ideas and Requests For Mods
- Topic: [Idea] Read individual cargo wagon contents
- Replies: 2
- Views: 1351
Re: [Idea] Read individual cargo wagon contents
Oh haha, it already exists.
Probably way better made than I would be able to
Thanks! I'll go check it out.
Probably way better made than I would be able to

Thanks! I'll go check it out.
- Tue Oct 29, 2019 12:11 pm
- Forum: Ideas and Requests For Mods
- Topic: [Idea] Read individual cargo wagon contents
- Replies: 2
- Views: 1351
[Idea] Read individual cargo wagon contents
You can read the contents of the full train via the train stop, but what if you can read the contents of an individual cargo wagon?
This might help with making balanced train (un)loaders. I barely use circuit networks, but if people like the idea I can try and make mod out of it.
You can't connect ...
This might help with making balanced train (un)loaders. I barely use circuit networks, but if people like the idea I can try and make mod out of it.
You can't connect ...