Scriptname AAASkelletScript extends ObjectReference  
{Enablres und Disables die Skelette im dungeon}

ObjectReference Property Skelett1 Auto
ObjectReference Property Skelett2 Auto
ObjectReference Property Skull Auto
ObjectReference Property Licht1 Auto
ObjectReference Property Licht2 Auto
ObjectReference Property HorrorLicht1 Auto
ObjectReference Property HorrorLicht2 Auto
Sound property HorrorSound auto

Auto State Trigger
      Event OnTriggerEnter(ObjectReference triggerRef)
	Actor actorRef = triggerRef as Actor
               if (actorRef == game.GetPlayer())
                    Game.DisablePlayerControls(True, True, True, False, True, False, True)
                    gotoState ("done")
		       HorrorSound.Play(Self)
                    HorrorLicht1.Enable (true) 
                    HorrorLicht2.Enable (true)
                    Skelett1.Enable(true)
                    Skelett2.Enable(true)
                    Skull.Enable(true)
                    Licht1.Disable(true)
                    Licht2.Enable(true)
Utility.Wait(9)  
                    HorrorLicht1.Disable ()
                    HorrorLicht2.Disable ()
                    Skelett1.Disable()
                    Skelett2.Disable()
                    Skull.Disable()
                    Licht1.Enable()
                    Licht2.Disable()
Utility.Wait(2)
                    Game.EnablePlayerControls()
                 endif
       EndEvent
endState

STATE done

endSTATE

ObjectReference Property SoundHorror  Auto  

Sound Property Horror  Auto  
