Scripts

TR_m4_TJ_WingedT_Spire_sc

TR_Mainland.esm
Variables 2
Local Variables
doOnce
OnPCHitMe
Source
1Begin TR_m4_TJ_WingedT_Spire_sc 2 3short doOnce 4short OnPCHitMe 5 6if ( MenuMode ) 7 return 8endif 9 10if ( doOnce >= 1 ) 11 return 12endif 13 14if ( OnDeath ) 15 set doOnce to 1 16 return 17endif 18 19if ( OnPCHitMe == 1 ) 20 SetFight 90 21 StartCombat Player 22 set OnPCHitMe to 0 23 set doOnce to 1 24 return 25endif 26 27if ( player->GetPos X >= -128 ) ; Winged Twilight is behind the wall 28 return 29endif 30 31if ( player->GetPos Z >= 255 ) ; Winged Twilight is below the player 32 return 33endif 34 35if ( GetDistance player > 400 ) 36 return 37endif 38 39; apparently GetDetected doesn't work on creatures 40ForceGreeting 41set doOnce to 1 42 43End