Detect biter nest spawning
-
- Long Handed Inserter
- Posts: 68
- Joined: Thu Jan 15, 2015 2:20 pm
- Contact:
Detect biter nest spawning
Is there a way to detect when a unit-spawner or a turret is created on a surface?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Detect biter nest spawning
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
* 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.