Keeping track of all the things
Posted: Sat Mar 16, 2019 6:19 pm
I'd like to have a list of all science labs at all times. Obviously doing this with find_entities_filtered every frame is a colossal waste. Does the API provide all the events I need to maintain my list? I'm not 100% sure which events I should be looking at:
Code: Select all
on_built_entity
on_entity_cloned -- When does this happen?
on_entity_died
on_player_mined_entity
on_robot_built_entity
on_robot_mined_entity
-- for these ones, I'm relying on other mods to be good neighbours and call them
script_raised_built
script_raised_destroy
script_raised_revive