Hi all!
How to get units spawning event?
on_unit_created
Re: on_unit_created
There is currently no such event. What would you want it for?
If you want to get ahold of me I'm almost always on Discord.
Re: on_unit_created
Take entity.unit_number and call on_tick one of them.Rseding91 wrote:There is currently no such event. What would you want it for?
It was a mod idea, where two enemies (biter + spitter) have chance to make one a new unit with higher tier. Two first are dying after it.
Scan chunks for units can be much slower and it's easy to call unit from the table.
Re: on_unit_created
It would be much easier to upgrade a spitter spawner to a super-unit spawner if there is a biter spawner nearby.