manually spawn biters ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

manually spawn biters ?

Post by binbinhfr »

Hi there,

I saw how to clean a map of all biters, or how to stop evolution with lua command, but I try to do the opposite, for testing purposes : is there a way to spawn a biter or any ennemi at a precise coordinate ?

thanks and have a good game.
My mods on the Factorio Mod Portal :geek:
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5410
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: manually spawn biters ?

Post by Klonan »

Something like this should do

Code: Select all

/c    local s = game.surfaces['nauvis'] local p = {0,0} s.create_entity{name = "big-biter", position = p, force = game.forces['enemy']}
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: manually spawn biters ?

Post by binbinhfr »

Thanks a lot, that's exactly what i needed.
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”