Update dbg.py
Added functions to warp to Mission target, or bring Mission target to current location
This commit is contained in:
parent
4e251de377
commit
a7b63b4297
1 changed files with 13 additions and 0 deletions
13
lib/dbg.py
13
lib/dbg.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue