Scriptname AAA2EnemyScript extends ObjectReference  
{Aktiviert einen gegner nach dem öffnen der Tür}


ObjectReference  Property MonsterEnable Auto
ObjectReference  Property MonsterDisable Auto
Sound Property HorrorSound Auto

Auto State Trigger
    Event OnActivate(ObjectReference akActionRef)
	Actor actorRef = akActionRef as Actor
               if (actorRef == game.GetPlayer())
                           MonsterEnable.Enable()
                           MonsterDisable.Disable()
                           HorrorSound.Play(self)
                           gotoState ("done")
                    endif
       EndEvent
endState

STATE done

endSTATE