Thank youAdil wrote:These days it's `player` instead of `local_player`.
Search found 2 matches
- Mon Sep 12, 2016 10:52 pm
- Forum: Gameplay Help
- Topic: How to remove enemies via console?
- Replies: 27
- Views: 44622
Re: How to remove enemies via console?
- Sun Sep 11, 2016 12:03 pm
- Forum: Gameplay Help
- Topic: How to remove enemies via console?
- Replies: 27
- Views: 44622
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 ...
/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 ...