11 import quest_contraband_truck
17 self.XMLScript (
"++flystraight.xml")
18 self.AddReplaceLastOrder(1)
27 VS.PythonAI.Execute(self);
28 if quest_contraband_truck.truck_exit == 1:
29 if self.got_target == 0:
32 self.XMLScript (
"++afterburn-turntowards.xml")
33 self.AddReplaceLastOrder(1)
39 self.
timer = VS.GetGameTime()
41 elif self.
timer + 30 < VS.GetGameTime()
and self.
autoed == 0:
42 self.GetParent().ActivateJumpDrive(1)
45 elif self.
timer + 5 < VS.GetGameTime():
46 self.MoveTo(self.trucktarget.Position(),1)
47 self.AddReplaceLastOrder(1)
51 print self.GetParent().getMinDis(self.trucktarget.Position())
55 print 'AI creation successful'