22 lines
575 B
Plaintext
22 lines
575 B
Plaintext
Scriptname _00E_MQ13c_SC10_OpenCapsuleSC extends ObjectReference
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
If !bIsOpen
|
|
bIsOpen = True
|
|
_00E_Capsule_Open_SDM.Play(Self)
|
|
Else
|
|
_00E_Capsule_Close_SDM.Play(Self)
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
bool bIsOpen
|
|
|
|
Sound Property _00E_Capsule_Close_SDM Auto
|
|
Sound Property _00E_Capsule_Open_SDM Auto |