if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates"endif
elseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif endif
if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif
if ( gamehour < 5.9 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830
Begin PE_Gate_Moveif ( gamehour < 5.9 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endifelseif ( gamehour < 6.1 ) ;open now if ( ( GetPos z ) < 2006.5 ) MoveWorld z 177 elseif ( ( GetPos z ) > 2007.5 ) SetPos z 2007 endif if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endifelseif ( gamehour < 19.9 ) ;should already be open if ( ( GetPos z ) < 2006.5 ) SetPos z 2007 endifelseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif endifelse ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endifendifEnd PE_Gate_Move
begin PE_Gate_Moveshort doSoundif ( gamehour < 5.9 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endif set doSoind to 0elseif ( gamehour < 6.1 ) ;open now if ( ( GetPos z ) < 2006.5 ) MoveWorld z 177 elseif ( ( GetPos z ) > 2007.5 ) SetPos z 2007 endif if ( doSound = 0 ) if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif endif set doSoind to 1elseif ( gamehour < 19.9 ) ;should already be open if ( ( GetPos z ) < 2006.5 ) SetPos z 2007 endif set doSoind to 0elseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 endif if ( doSound = 0 ) if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif endif set doSoind to 1else ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endif set doSoind to 0endifend
Begin PE_Gate_Moveshort doSoundif ( gamehour < 5.9 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endif set doSound to 0elseif ( gamehour < 6.1 ) ;open now if ( ( GetPos z ) < 2006.5 ) MoveWorld z 177 elseif ( ( GetPos z ) > 2007.5 ) SetPos z 2007 endif if ( doSound = 0 ) if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif endif set doSound to 1elseif ( gamehour < 19.9 ) ;should already be open if ( ( GetPos z ) < 2006.5 ) SetPos z 2007 endif set doSound to 0elseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 endif if ( doSound = 0 ) if ( GetSoundPlaying "MournGatesClose" == 0 ) PlaySound3d "MournGatesClose" endif endif set doSound to 1else ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endif set doSound to 0endifEnd PE_Gate_Move
begin PE_Gate_Moveif ( gamehour < 5.9 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endifelseif ( gamehour < 6.1 ) ;open now if ( ( GetPos z ) < 2006.5 ) MoveWorld z 177 if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif elseif ( ( GetPos z ) > 2007.5 ) SetPos z 2007 endifelseif ( gamehour < 19.9 ) ;should already be open if ( ( GetPos z ) < 2006.5 ) SetPos z 2007 endifelseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 if ( GetSoundPlaying "MournGates" == 0 ) PlaySound3d "MournGates" endif elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 endifelse ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endifendifend
begin PE_Gate_Moveshort doonceif ( gamehour < 6 ) ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endifelseif ( gamehour < 6.1 ) ;open now if ( ( GetPos z ) < 2006.5 ) MoveWorld z 177 if ( doonce == 0 ) PlaySound3d "MournGates" set doonce to 1 endif elseif ( ( GetPos z ) > 2007.5 ) SetPos z 2007 endifelseif ( gamehour < 20 ) ;should already be open if ( ( GetPos z ) < 2006.5 ) SetPos z 2007 endif set doonce to 0elseif ( gamehour < 20.1 ) ;close now if ( ( GetPos z ) > 1830.5 ) MoveWorld z -177 if ( doonce == 0 ) PlaySound3d "MournGates" set doonce to 1 endif elseif ( ( GetPos z ) < 1829.5 ) SetPos z 1830 endifelse ;should already be closed if ( ( GetPos z ) > 1830.5 ) SetPos z 1830 endif set doonce to 0endifend