midspace / Space-Engineers-Admin-script-mod

Modding script for Space Engineers with dozens of Admin commands for creating game scenarios or supporting servers.
43 stars 13 forks source link

Add a command to delete floating objects #107

Open zrisher opened 9 years ago

zrisher commented 9 years ago

It would be nice to have the ability to delete all current floating objects due to bugs like https://github.com/KeenSoftwareHouse/SpaceEngineers/issues/376

Apologies if this already exists! Couldn't find it in the wiki.

DigTron commented 8 years ago

I am in need of something like this also, it is in fact one of the reasons why I'm picking around these issues.

Looking at what's there I'm thinking (that is if yall don't mind) I might modify /countobjects to use similar filters to your /drop - /invadd - /invins commands to count types as a way of seeing what there is a lot of before you delete (maybe a range modifier also to allow admins to clean up some mishap in one corner of the map) and then add a /deleteobjects command that does the same but deletes each match as well.

Because space master right now leaves alot to be desired.

midspace commented 8 years ago

That's that good idea. :+1: Making it more targeted helps in keeping its effect limited.

Though right now I'm wondering if we don't just re-write this like I did with the /TP command, and make it more generic, making it easier to switch and change between the commands.

/object count <range> <type> (count or cou... or cnt) /object pull <range> <type> (pull) /object collect <range> <type> (collect or col...) /object delete <range> <type> (delete or del...)

Range and type would be optional, and because range is a value and type is a string, the order really doesn't matter.