Page 1 of 1

Enemies colonies bigger with greater distance to x=0,y=0

Posted: Sat Dec 17, 2016 4:10 pm
by Arg-Arthur_MP
Hi,

Now, if you spawn a player far away from x=0, y=0, he will be surrounded by really big native's colonies. How could i change that? I need all player to face same challenge not matter where they spawn.

Thank you!

Re: Enemies colonies bigger with greater distance to x=0,y=0

Posted: Sat Dec 17, 2016 4:27 pm
by Nexela
You can clear the enemies from around the spawn location, but the second problem the ores further away from 0, 0 are gonna be bigger

Here is how you could clear the enemies from around the new spawn *command line example*

/c local rad = 200; local spawn = {x=1000, y=1000}; local area = {{spawn.x-rad, spawn.y-rad}, {spawn.x+rad, spawn.y+rad}}; for _, entity in pairs(game.player.surface.find_entities_filtered{area=area, force="enemy"}) do entity.destroy() end

Re: Enemies colonies bigger with greater distance to x=0,y=0

Posted: Sat Dec 17, 2016 5:14 pm
by Arg-Arthur_MP
Nexela wrote:You can clear the enemies from around the spawn location, but the second problem the ores further away from 0, 0 are gonna be bigger

Here is how you could clear the enemies from around the new spawn *command line example*

/c local rad = 200; local spawn = {x=1000, y=1000}; local area = {{spawn.x-rad, spawn.y-rad}, {spawn.x+rad, spawn.y+rad}}; for _, entity in pairs(game.player.surface.find_entities_filtered{area=area, force="enemy"}) do entity.destroy() end
That could be a solution aproach!

Thank you, Nexela :)

Re: Enemies colonies bigger with greater distance to x=0,y=0

Posted: Sun Dec 18, 2016 11:48 am
by Xeanoa
You could spawn all players an equal distance from (0,0). That would make the natives equally strong for everyone.