//Delay for freeze
 WAIT 1

//Start sim in paused mode
 SimCommand SimMotionFreeze
 
//Text layout setup
 SetColor 0xffffffff
 SetTextBoxed 2
 SetFont 3
 SetTextOrientation 0
 SetFlash 0

 //Some text
 SetCursor -0.98 0.08
 Print 2 "Welcome to the BMS In-flight failure training mission"

 MoveCursor 0 -0.08
 WaitPrint 3 "Please wait until your cockpit is set up."

 //Full Fuel load -> dump fuel to light the aircraft
 SimCommand SimFuelDump
 SimCommand SimFuelDump
 SimCommand SimFuelDump 
 SimCommand SimFuelDump 
 SimCommand SimFuelDump 
 SimCommand SimFuelDump
 SimCommand SimFuelDump
 SimCommand SimFuelDump
 SimCommand SimFuelDump

 // Fuel Trans to AFT to augment Imbalance from HYDA
 SimCommand SimFuelPumpAft
 
  //ILS OFF -> set to on
 SimCommand SimILSOn

 MoveCursor 0 -0.08
 Print 4 "Initial setup finished. You have the aircraft."

 //resumes mission
 SimCommand SimMotionFreeze

 WaitGameTime 90
 //Main gen soft failure
 SetFault 13
 
 WaitGameTime 120 
 //Left MFD off
 SetFault 144
 
 WaitGameTimet 45
 //Single A Hyd fail and ISA ALL and gear and NWS together
 SetFault 30
 WaitGameTime 27
 SetFault 105
 SetFault 5
 SetFault 45 
 
 WaitGameTime 105
 // Tacan - will be noticed only when tacan is selected
 SetFault 131
 // GPS fault may induce INS drift
 SetFault 138

 WaitGameTime 300
 // Hud goes banana
 SetFault 112

 WaitGameTime 120
 //EGI and INS failure player should be on the ground
 SetFault 141
 
  WaitGameTime 180
 //Main Gen hard failure (non resetable) 
 SetFault 14
 
 