Scripts

TR_m1_Aranyon_Creature

TR_Mainland.esm
Variables 1
Local Variables
timer
Source
1;this is just so that the undead in Aranyon Pass are only found there at night 2begin TR_m1_Aranyon_Creature 3 4float timer 5; 4..5 seconds delay to avoid calling slow getdistance each frame 6if ( timer < 5 ) 7 set timer to ( timer + GetSecondsPassed ) 8 return 9endif 10set timer to Random 1001 11set timer to ( timer * 0.001 ) ; 0 <= timer <= 1 12 13if ( getdistance "player" <= 4000 ) 14 return 15endif 16 17if ( gamehour < 6 ) 18 if ( GetDisabled ) 19 enable 20 endif 21elseif ( gamehour > 21 ) 22 if ( GetDisabled ) 23 enable 24 endif 25elseif ( GetDisabled == 0 ) 26 disable 27endif 28 29end