Added dbg.nuke() which destroy everything in the Level

This commit is contained in:
Earthnuker 2017-10-08 03:06:33 +02:00
parent 50541eadb1
commit 41b37b2037

View file

@ -121,6 +121,19 @@ def enable_all_conv():
print(len(CharConversor.ConversionChars)) print(len(CharConversor.ConversionChars))
print "Done!" print "Done!"
def nuke():
E=Scrap.GetFirst()
me = Scrap.UsrEntity(0)
while E:
if E.Name==me.Name:
E = Scrap.GetEntity(E.NextInSlot)
try:
E.Life=0
E.Invulnerable=0
except:
pass
E = Scrap.GetEntity(E.NextInSlot)
def become(name): def become(name):
enable_all_conv() enable_all_conv()
import CharConversor import CharConversor