Request: On attack triggered event

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Jamesamrundle
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Nov 01, 2024 3:24 pm
Contact:

Request: On attack triggered event

Post 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.
curiosity
Filter Inserter
Filter Inserter
Posts: 668
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Request: On attack triggered event

Post 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.
Post Reply

Return to “Modding interface requests”