add information to event for fast_replace of entities
Posted: Tue Dec 01, 2020 11:07 am
Hello,
is it possible to add information to the event table, if an entity is up-/downgraded/fast-replaced?
Something like this:
With this information custom entities, e.g. based on simple-entity-with-*, which store additional information in a global table based on their unit_number can be handled without heuristics based on tick, position and surface.
Thanks,
Jaren
is it possible to add information to the event table, if an entity is up-/downgraded/fast-replaced?
Something like this:
Code: Select all
-- in on_destroy
event.reason = "fast_replace"
-- in on_create
event.replaced_unit_number = old_entity.unit_number
Thanks,
Jaren