Scriptname AAATruhenScript extends ObjectReference  

Sound Property HSound auto
ObjectReference Property Truhe1 Auto
ObjectReference Property Truhe2 Auto

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

STATE done

endSTATE
  
