Advertisement
Guest User

477

a guest
Dec 22nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Miboune = GetHandle("svrecy5_recycler")
  2. local khkhkh = false
  3. local ok = false
  4. local lel = nil
  5. local NSDFRecycler = GetHandle ("bvegan38_recycler")
  6. local FinalCountdown = 5
  7. local timefail = false
  8. local timesuccess = false
  9.  
  10.  
  11. function Save()
  12.     currentTime = GetCockpitTimer()
  13.     return Miboune, NSDFRecycler, khkhkh, ok
  14. end
  15.      
  16. function Load(...)
  17.     if select('#', ...) >= 0 then
  18.         Miboune, NSDFRecycler, khkhkh, ok = ...
  19.     end
  20. end
  21.  
  22. function Update()
  23.  
  24. if not IsAlive(Miboune) and not ok then
  25.  
  26. lel = BuildObject ("lecruise", 0, "path_3")
  27. ok = true
  28. end
  29.  
  30. if not and IsAlive(Miboune) and not ok then
  31. ClearObjectives ()
  32.             AddObjective ("usrmsnle.otf" ,"red" ,8)
  33.  if not timefail then
  34.             StartCockpitTimerUp (0)
  35.             HideCockpitTimer ()
  36.             timefail = true
  37.         end
  38.        
  39.         if GetCockpitTimer () >= FinalCountdown and timefail then
  40.             FailMission (GetTime(0.0) ,"fatality.des")
  41.         end
  42. end
  43.  
  44.  
  45. if not IsAlive (NSDFRecycler) and ok and not khkhkh then
  46. ClearObjectives ()
  47.             AddObjective ("usrmsn56c.otf" ,"green" ,8)
  48.         khkhkh = true
  49. end
  50. if not timefail and khkhkh then
  51.             StartCockpitTimerUp (0)
  52.             HideCockpitTimer ()
  53.             timesuccess = true
  54.         end
  55.        
  56.         if GetCockpitTimer () >= FinalCountdown and timesuccess then
  57.             SucceedMission (GetTime(0.0) ,"uwin.des")
  58.         end
  59.  
  60.  
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement