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 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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue