Page 1 of 1

manually spawn biters ?

Posted: Thu Mar 03, 2016 5:44 pm
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.

Re: manually spawn biters ?

Posted: Thu Mar 03, 2016 5:49 pm
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']}

Re: manually spawn biters ?

Posted: Thu Mar 03, 2016 11:56 pm
by binbinhfr
Thanks a lot, that's exactly what i needed.