djkrose / 7DTD-ScriptingMod

Adds scripting support and other useful functionality to 7 Days To Die dedicated server
19 stars 10 forks source link

Add a script to mass-remove entities by type #24

Open djkrose opened 7 years ago

djkrose commented 7 years ago

Requested by xorex (7dtd forum) via PM:

In other mods there is a command like removeentity, but it can remove only one entity by ID at once

Can you add to your mod new command like removeentity for multiple entity delete by type, like this

Code:

rmentity rockSmall

even better, to delete several at one time

Code:

rmentity rockSmall,crushedSand,scrapIron

Further clarification explaint that this is indeed only about entities not about world blocks. So rmentity rockSmall would remove the dropped item, not a rock lying around.

The coammnd can't and probably shouldn't target individual item names, but rather categories, like falling blocks, items, etc...