Update dbg.py

Added functions to warp to Mission target, or bring Mission target to current location
This commit is contained in:
Earthnuker 2017-10-09 18:53:18 +00:00
parent 4e251de377
commit a7b63b4297

View file

@ -1,6 +1,9 @@
import sys import sys
import Scrap import Scrap
import quickconsole import quickconsole
import MissionsFuncs
QC=quickconsole
MF=MissionsFuncs
def p_s(*args): def p_s(*args):
msg="" msg=""
for obj in args: for obj in args:
@ -121,6 +124,16 @@ def enable_all_conv():
print(len(CharConversor.ConversionChars)) print(len(CharConversor.ConversionChars))
print "Done!" print "Done!"
def goto(name=None):
if name==None:
name=MF.currentTarget
Scrap.UsrEntity(0).Pos=Scrap.GetEntity(name).Pos
def bring(name=None):
if name==None:
name=MF.currentTarget
Scrap.GetEntity(name).Pos=Scrap.UsrEntity(0).Pos
def nuke(): def nuke():
E=Scrap.GetFirst() E=Scrap.GetFirst()
me = Scrap.UsrEntity(0) me = Scrap.UsrEntity(0)