Add event for when a unit_group is destroyed
Re: Add event for when a unit_group is destroyed
This would be useful for enemy AI mods.
Re: Add event for when a unit_group is destroyed
TLDR part is implemented for 2.0 as there was "register_on_object_destroyed" implemented that supports unit groups. It may be slightly tricky because it has the same limitations as register_on_entity_destroyed - depending on when unit group is destroyed, the event may be raised in current or next tick and there are some implementation details about unit groups as they transition through a "dead" state before being destroyed causing them to be no longer valid but not yet destroyed. Lets consider this implemented for 2.0 but once it will be out and you see some issues just open new topic describing what is wrong.