Updating a property after research finishes
Posted: Fri Sep 29, 2017 5:36 pm
If I wanted to create some technology that, when researched, changed the cooldown time for the laser turrets, how would I go about doing that?
I think I would create a set of technologies that had an empty object for the effect, but would do something on the "on_research_finished" event? Can I somehow modify the cooldown property of all turrets that a player has placed/places? Do I have to create new entities and replace all existing with the new one and replace all newly placed ones with the new one as they place them?
I think I would create a set of technologies that had an empty object for the effect, but would do something on the "on_research_finished" event? Can I somehow modify the cooldown property of all turrets that a player has placed/places? Do I have to create new entities and replace all existing with the new one and replace all newly placed ones with the new one as they place them?