Page 1 of 1

Request: On attack triggered event

Posted: Thu Jan 30, 2025 4:25 pm
by Jamesamrundle
As I understand it, units released from spawners will either join an existing unitgroup (if close enough) or start a new one. Still not exactly clear how this interacts with "on_unit_group_finished_gathering" event, but adding an "on_attack triggered" event, when the group leaves their rallying location, would be super helpful, and book-end modders access to the attacking cycle.

Re: Request: On attack triggered event

Posted: Thu Jan 30, 2025 7:26 pm
by curiosity
Jamesamrundle wrote: Thu Jan 30, 2025 4:25 pm As I understand it, units released from spawners will either join an existing unitgroup (if close enough) or start a new one. Still not exactly clear how this interacts with "on_unit_group_finished_gathering" event, but adding an "on_attack triggered" event, when the group leaves their rallying location, would be super helpful, and book-end modders access to the attacking cycle.
"Called when a unit group finishes gathering and starts executing its command."
Seems pretty clear to me. So just check if its command is to attack.