Scriptname AAAFirstEnemy1Script extends ObjectReference  
{Lässt die mauer zerbersten, Gegner kommt heraus...}

 ; NavMesh generieren!

Actor Property Spieler  Auto  
ObjectReference Property BrettBrechen Auto
ObjectReference Property LichtRot Auto
ObjectReference Property Brett1 Auto
ObjectReference Property Brett2 Auto
ObjectReference Property Brett3 Auto
ObjectReference Property Smoke Auto
ObjectReference Property Demon Auto
ObjectReference Property Mob Auto
Sound Property BrechenSound Auto
Sound Property HorrSound Auto

Auto State Trigger
      Event OnTriggerEnter(ObjectReference triggerRef)
	Actor actorRef = triggerRef as Actor
               if (actorRef == game.GetPlayer())
                    gotoState ("done")
                    Game.DisablePlayerControls(True, True, True, True, True, True, True)
                    LichtRot.Enable(True)
                    Demon.Enable(true)
                    HorrSound.Play(Self)
Utility.wait(3)   
                    Demon.Disable(True)
Utility.Wait(1)                
                    Smoke.Enable(true)  
                    BrettBrechen.Disable()  
                    Brett1.Enable()
                    Brett2.Enable()   
                    Brett3.Enable()      
                    Mob.Enable()
                    BrechenSound.Play(Self)  
                    Zone1.enable()
Utility.Wait(0.2)
                    Game.EnablePlayerControls()
                   
 Smoke.Enable()                     
	         endif
       EndEvent
endState

STATE done

endSTATE


ObjectReference Property Zone1  Auto  
