ScriptName _00E_MQ13c_SC09_CapsuleSC Extends ObjectReference ;-- Variables --------------------------------------- Bool bIsOpen ;-- Properties -------------------------------------- Sound Property _00E_Capsule_Close_SDM Auto Sound Property _00E_Capsule_Open_SDM Auto ;-- Functions --------------------------------------- ; Skipped compiler generated GetState ; Skipped compiler generated GotoState Event OnActivate(ObjectReference akActionRef) If !bIsOpen _00E_Capsule_Open_SDM.Play(Self as ObjectReference) bIsOpen = True Else _00E_Capsule_Close_SDM.Play(Self as ObjectReference) EndIf EndEvent