Search found 2 matches

by Iggmynir
Mon Sep 12, 2016 10:52 pm
Forum: Gameplay Help
Topic: How to remove enemies via console?
Replies: 27
Views: 43591

Re: How to remove enemies via console?

Adil wrote:These days it's `player` instead of `local_player`.
Thank you :)
by Iggmynir
Sun Sep 11, 2016 12:03 pm
Forum: Gameplay Help
Topic: How to remove enemies via console?
Replies: 27
Views: 43591

Re: How to remove enemies via console?

Here is a script that will kill all worms, biters, spitters and spawners everywhere on the map:

/c local surface = game.local_player.surface
for c in surface.get_chunks() do
for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force ...

Go to advanced search