Detect biter nest spawning

Place to get help with not working mods / modding interface.
tux_mark_5
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Thu Jan 15, 2015 2:20 pm
Contact:

Detect biter nest spawning

Post by tux_mark_5 »

Is there a way to detect when a unit-spawner or a turret is created on a surface?
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Detect biter nest spawning

Post by aubergine18 »

I'm still learning the API, but see if either of these events suffice:

* defines.events.on_trigger_created_entity
* defines.events.on_force_created
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”