It seems there is no way in the engine to react to asteroid chunks being created, as they are not entities. The purpose of this request is to be able to suppress the chunk drops of asteroids at runtime, that way I can spawn special asteroids that follow the same gun targeting rules but don't drop chunks.
created_effect is not available and on_trigger_created_entity can never be fired. Supporting the former may be the best option given that dying_trigger_effect has already been implemented for asteroid chunks.
Reacting to asteroid chunks being created
-
thesixthroc
- Fast Inserter

- Posts: 135
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
-
thesixthroc
- Fast Inserter

- Posts: 135
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
Re: Reacting to asteroid chunks being created
I have implemented a workaround for the mod in question by deleting nearby chunks when the asteroid dies.
Re: Reacting to asteroid chunks being created
Why not modify the dying_trigger_effect to not spawn them in the first place? Do you need it to be dynamic as to if they spawn or not? You could replace the trigger with a script trigger then.
