Space Engineers

Space Engineers

No Scrap Shrapnel
7 Comments
rolenthedeep 27 Apr, 2017 @ 7:49pm 
I have a better solution for stopping scrap metal. You can edit block definitions on the fly to just remove any and all drops. Run this snippet once when the session starts:

foreach (var def in MyDefinitionManagerBase.Static.GetAllDefinitions<MyDefinitionBase>())
{
var c = def as MyComponentDefinition;
if (c == null)
continue;
c.DropProbability = 0;
}

You could refine this if you want to look only for scrap metal, but for my purposes I wanted to remove all drops forever.
The Erubian Warlord 20 Dec, 2016 @ 9:53pm 
ok then that makes sense
Psyklz  [author] 19 Dec, 2016 @ 8:21pm 
@The Erubian Warlord In this case, it was to make ship battles lighter on performance by not having scrap metal being created from destroyed blocks. When scaled up, those little plates cause a lot of physics and slowdown.
Psyklz  [author] 19 Dec, 2016 @ 8:20pm 
@vanbot2000 Any scrap that enters the world goes away. Its does not appear possible to know where the scrap came from, from a modding standpoint, so if it enteres the world at all its destroyed instantly.
vanbot2000 18 Dec, 2016 @ 2:50pm 
does it still give scrap if i break down something that would normally give scrap such as breaking down a battery (the power cells turn to scrap)
delleds 17 Dec, 2016 @ 10:05pm 
@The Erubian Warlord Yummy fps/simspeed, generally less RAM usage
The Erubian Warlord 17 Dec, 2016 @ 1:30am 
what use is removing the scrap may I ask?