7 Days to Die

7 Days to Die

View Stats:
This topic has been locked
How to remove a entity?
Hello together,

i tried spawning some stuff like bears and zombies and so on, they where killed no problem.
But i also spawned 3 npcBanditMelee this guys are not dying and i have no idea how to remove them, i tried the command kill + entity ID but i just says not found. Does anyone have a solution?
< >
Showing 1-15 of 24 comments
Kunovega Jul 22, 2017 @ 6:59am 
If you spawned them from F6 menu, just log out they will go away (or reboot the server if you are on a dedicated)

If you spawned them using the console commands, I have no idea
Last edited by Kunovega; Jul 22, 2017 @ 6:59am
i spawned them using the console commands on a dedicated :(
Kunovega Jul 22, 2017 @ 8:33am 
You could delete the map file for the region they were in. That would reset every block within the region to default (based on the seed)

Assuming anything you care about isn't nearby the rest of the server would be unaffected

I've seen admins use this to reset cities for looting them again (and the server has a warning to not build near cities or your base will be reset)
Last edited by Kunovega; Jul 22, 2017 @ 8:34am
Kunovega Oct 25, 2017 @ 3:39pm 
In case anyone stumbles on this thread looking for an answer (it showed up in a google search for "how to remove entity?" it can be done using coppi's mod:
https://7daystodie.com/forums/showthread.php?44835-Coppi-MOD-New-features

5) RemoveEntity
Is possible the remove bugged minibikes, entity cars (spwaned accidently), zombies.
When used on zombie, it just vanish without leaving gore on floor.

coppi's mod is also part of botman server manager:
http://www.botman.nz/

From the console (f1)
Use:
le
This will List Entity

From there you can get the Id numbers of things around you (NPC, Traders, minibikes, etc)

the console command is

removeentity <idnumber>
Last edited by Kunovega; Oct 25, 2017 @ 3:40pm
IF ur host type kill all in debuge menu
steelgod101a Oct 26, 2017 @ 4:45am 
thats what I liked about the elder scrolls game engine. If you had a problem with an NPC all you had to do was open the console, click on the npc in question, and type in the apropriate command. Not only did it allow you to delet, and edit any given npc this way, but it also displayed its entire entity id once you clicked it, so if you needed the id later on and wasnt near the npc, you had it.
Kunovega Oct 27, 2017 @ 7:23am 
Originally posted by SSJ_Blue:
IF ur host type kill all in debuge menu

killall will not kill traders, players, animals or minibikes, only zombies

ECV Jun 15, 2018 @ 10:17am 
Originally posted by Kunovega:
Originally posted by SSJ_Blue:
IF ur host type kill all in debuge menu

killall will not kill traders, players, animals or minibikes, only zombies

pretty sure it does kill traders
Ultra_Instinct_Goku Jun 15, 2018 @ 10:35am 
and animals (agressive animals i think)
Kunovega Jun 15, 2018 @ 10:33pm 
Originally posted by ecv:
Originally posted by Kunovega:

killall will not kill traders, players, animals or minibikes, only zombies

pretty sure it does kill traders

It doesn't and you could have checked that in seconds just by opening the console and testing it

It's a function that can be modded in, but killall does not kill traders, players, non-aggressive animals or minibikes by default in vanilla

here's some boars and zombies in a box with a trader on top and a minibike next to it
https://steamcommunity.com/sharedfiles/filedetails/?id=1413122798

here's the killall command being given:
https://steamcommunity.com/sharedfiles/filedetails/?id=1413122821

It doesn't even attempt to do damage the minibik or the animals, it tried to do damage to the zombies (they die) and it tries to do damage to the trader, but traders are immune to the damage and live anyway:

He's still functional:
https://steamcommunity.com/sharedfiles/filedetails/?id=1413122837

There are ways to remove minibikes and traders from the world with modded console commands, but killall will not do it by default


Originally posted by Bossatronio:
and animals (agressive animals i think)

it will kill bears, wolves and dogs, it doesn't kill boars or stag, i didnt bother testing with snakes or whatever, its kind of obvious they intended that in its current form for killall to avoid the passive animals
Last edited by Kunovega; Jun 15, 2018 @ 10:55pm
ECV Jun 16, 2018 @ 1:52am 
Right, within in seconds. Cause everybody always has some game flying around where they could simply use the killall command.
Without that remark it would have been a good, informative post.
ECV Jun 16, 2018 @ 1:56am 
Anyhow, the command tries to kill the trader. It's dealing damage to it.So it not dying might be a bug.
YamaKami (Banned) Jun 16, 2018 @ 2:00am 
Originally posted by ecv:
Right, within in seconds. Cause everybody always has some game flying around where they could simply use the killall command.
Without that remark it would have been a good, informative post.

You could have tested that yourself in seconds remains 100% true however. It's not hard to start up a new game to test any theory. Stating the obvious at the start of his post, doesn't make the post any less informative either. Rather that is more like the bare minimum you would say when someone second guesses what you have stated, and does so without any proof or reasoning. Basically that informative post was superfluous to this thread, and there just for you. So without your previous remark nothing informative, edgy, or otherwise, needed to be posted. Yet it was. So the only thing you should have said was "Thank you for clearing that up" as clearly Kuno took time out of his schedule to make sure it was clear to you.
ECV Jun 16, 2018 @ 2:56am 
So being condecendeing and assuming to know how long something will take for others is good style then?
Traders sometimes get killed by the killall command. I can clearly remember that. We also don't use that command on our server for that reason. We are thinking it is tied to the broken trader bug.
And no, a seconds long testgame would never reveal that. I don't raise doubt to someones statements without a reason. Also, communication on steam even works when mobile.
Starting a seconds long testgame would require me to drive home first.
YamaKami (Banned) Jun 16, 2018 @ 3:09am 
Originally posted by ecv:
So being condecendeing and assuming to know how long something will take for others is good style then?
Traders sometimes get killed by the killall command. I can clearly remember that. We also don't use that command on our server for that reason. We are thinking it is tied to the broken trader bug.
And no, a seconds long testgame would never reveal that. I don't raise doubt to someones statements without a reason. Also, communication on steam even works when mobile.
Starting a seconds long testgame would require me to drive home first.
It's not condescending at all. Rather you called him out on a fact you were unclear on and incorrect about. He was polite and thorough in his response. I have nothing more to add other than if you put your ego aside fro a moment you'll see it's being helpful and if anyone was out of line it was you. I wouldn't have even said anything but you came back to pour a heap of salt onto a non issue.

Thank the man and move on. I could care less about this myself. It's pretty rare Kuno and I see eye to eye on anything ever. And I can't recall ever seeing you around here. So I have no dog in this fight rather there's no fight to begin with just you being salty over nothing.
Last edited by YamaKami; Jun 16, 2018 @ 3:10am
< >
Showing 1-15 of 24 comments
Per page: 1530 50

Date Posted: Jul 22, 2017 @ 6:17am
Posts: 22