Entity that deploys units on map

Place to get help with not working mods / modding interface.
Post Reply
Helveg
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat May 27, 2017 4:30 pm
Contact:

Entity that deploys units on map

Post by Helveg »

Hi!

I'm interested to know if there's a way to let a building deploy units. Perhaps a modified roboport that deploys a modified flying robot? Or an assembly machine that destroys the item it produces and instead creates a unit on your force? I couldn't find an event in the API that triggers when something like an assembly machine / furnace completes a production cycle and checking the progression every tick seems like too much overhead. Any ideas? What's viable?

Helveg
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat May 27, 2017 4:30 pm
Contact:

Re: Entity that deploys units on map

Post by Helveg »

Solved it! I can create my own unit-spawner entity! If anyone is interested look in enemies.lua for the biter-spawner entity as an example.

Post Reply

Return to “Modding help”