Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
waitjump Class Reference
Inheritance diagram for waitjump:

Public Member Functions

def init
 
def ChooseTarget
 
def Execute
 

Data Fields

 timer
 
 got_target
 
 autoed
 
 trucktarget
 

Detailed Description

Definition at line 14 of file ai_qct_waitjump.py.

Member Function Documentation

def ChooseTarget (   self)

Definition at line 23 of file ai_qct_waitjump.py.

23 
24  def ChooseTarget(self):
25  return
def Execute (   self)

Definition at line 26 of file ai_qct_waitjump.py.

26 
27  def Execute(self):
28  VS.PythonAI.Execute(self);
29  if quest_contraband_truck.truck_exit == 1:
30  if self.got_target == 0:
31  self.GetParent().SetTarget(universe.getRandomJumppoint())
32  self.trucktarget = (self.GetParent()).GetTarget()
33  self.XMLScript ("++afterburn-turntowards.xml")
34  self.AddReplaceLastOrder(1)
35  self.got_target = 1
36 
37 # starts him afterburning to target
38 
39  if self.timer == 0:
40  self.timer = VS.GetGameTime()
41  print "Timer Set"
42  elif self.timer + 30 < VS.GetGameTime() and self.autoed == 0:
43  self.GetParent().ActivateJumpDrive(1)
44  self.GetParent().AutoPilotTo(self.trucktarget,1)
45  self.autoed = 1
46  elif self.timer + 5 < VS.GetGameTime():
47  self.MoveTo(self.trucktarget.Position(),1)
48  self.AddReplaceLastOrder(1)
49 # elif self.timer + 60 < VS.GetGameTime():
50 # gets him to auto to the jump and jump out
51 # self.GetParent().ActivateJumpDrive(1)
52  print self.GetParent().getMinDis(self.trucktarget.Position())
53 
return 1
def init (   self,
  un 
)

Definition at line 16 of file ai_qct_waitjump.py.

16 
17  def init(self,un):
18  self.XMLScript ("++flystraight.xml")
19  self.AddReplaceLastOrder(1)
20  self.timer = 0
21  self.got_target = 0
22  self.autoed = 0

Field Documentation

autoed

Definition at line 21 of file ai_qct_waitjump.py.

got_target

Definition at line 20 of file ai_qct_waitjump.py.

timer

Definition at line 19 of file ai_qct_waitjump.py.

trucktarget

Definition at line 31 of file ai_qct_waitjump.py.


The documentation for this class was generated from the following file: