Allow event for a cliff being destroyed
Posted: Sat May 07, 2022 9:48 pm
This is a request for a way to see when a cliff is being destroyed.
currently the only events raised are when the cliff exposive is thrown
on_pre_robot_exploded_cliff and
on_player_used_capsule
or after the cliff is dead already
on_robot_exploded_cliff (no way to tell when a player thown explosive lands)
what I am looking for is something from right before the cliff is destroyed kind of like how on_entity_died is before the death and on_post_entity_died is after
currently this is doable only by listing for where the capsle is thrown and checking every tick for if the target cliff still exists, easy to get desyncs or memory leaks.
Edit: I have confirmed using https://mods.factorio.com/mod/0-event-trace that no event is raised at all for destruction of a cliff if the explosive is thrown by the player
currently the only events raised are when the cliff exposive is thrown
on_pre_robot_exploded_cliff and
on_player_used_capsule
or after the cliff is dead already
on_robot_exploded_cliff (no way to tell when a player thown explosive lands)
what I am looking for is something from right before the cliff is destroyed kind of like how on_entity_died is before the death and on_post_entity_died is after
currently this is doable only by listing for where the capsle is thrown and checking every tick for if the target cliff still exists, easy to get desyncs or memory leaks.
Edit: I have confirmed using https://mods.factorio.com/mod/0-event-trace that no event is raised at all for destruction of a cliff if the explosive is thrown by the player