Some questions about "register_on_entity_destroyed"

Place to get help with not working mods / modding interface.
Post Reply
User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

Some questions about "register_on_entity_destroyed"

Post by ZwerOxotnik »

Is this okay and safe to use register_on_entity_destroyed with "text" entity instead of on_nth_tick in some cases? Although, it can be too "dirty"...

For instance: a script would change 3 times certain UIs/entities after each ~180 Nth tick or even change it after ~180, 480, 3600 Nth tick.
Or for some unique delayed events, for instance: A player destroyed some unique entity, a function in register_on_entity_destroyed due to the entity will create another dummy entity to make 1 another delayed event.
I make cakes from mods. However, I don't have dough now but you can help me.

Post Reply

Return to “Modding help”