From a7b63b429740709c97a35227bd7caf567eae93c9 Mon Sep 17 00:00:00 2001 From: Earthnuker Date: Mon, 9 Oct 2017 18:53:18 +0000 Subject: [PATCH] Update dbg.py Added functions to warp to Mission target, or bring Mission target to current location --- lib/dbg.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/dbg.py b/lib/dbg.py index aab9144..b12c54e 100644 --- a/lib/dbg.py +++ b/lib/dbg.py @@ -1,6 +1,9 @@ import sys import Scrap import quickconsole +import MissionsFuncs +QC=quickconsole +MF=MissionsFuncs def p_s(*args): msg="" for obj in args: @@ -121,6 +124,16 @@ def enable_all_conv(): print(len(CharConversor.ConversionChars)) 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(): E=Scrap.GetFirst() me = Scrap.UsrEntity(0)