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
1 changed files with 13 additions and 0 deletions

View File

@ -121,6 +121,19 @@ def enable_all_conv():
print(len(CharConversor.ConversionChars))
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):
enable_all_conv()
import CharConversor