Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
4 months ago
|
ScriptName _00E_NQ08_CasketScript Extends ObjectReference
|
||
|
|
||
|
;-- Variables ---------------------------------------
|
||
|
|
||
|
;-- Properties --------------------------------------
|
||
|
Quest Property NQ08 Auto
|
||
|
Sound Property _00E_Casket_LockedSound Auto
|
||
|
Message Property _00E_NQ08_Casket_mb Auto
|
||
|
Sound Property _00E_NQ08_RustyCasketOpenSealSound Auto
|
||
|
Sound Property _00E_NQ08_RustyCasketOpenSound Auto
|
||
|
|
||
|
;-- Functions ---------------------------------------
|
||
|
|
||
|
; Skipped compiler generated GetState
|
||
|
|
||
|
; Skipped compiler generated GotoState
|
||
|
|
||
|
Event OnCellAttach()
|
||
|
Int doOnce
|
||
|
If doOnce == 0
|
||
|
Self.BlockActivation(True)
|
||
|
doOnce = 1
|
||
|
EndIf
|
||
|
EndEvent
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
If Self.IsActivationBlocked()
|
||
|
Int soundInstanceID = _00E_Casket_LockedSound.Play(Self as ObjectReference)
|
||
|
_00E_NQ08_Casket_mb.show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
|
||
|
EndIf
|
||
|
EndEvent
|
||
|
|
||
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, Bool abPowerAttack, Bool abSneakAttack, Bool abBashAttack, Bool abHitBlocked)
|
||
|
If Self.IsActivationBlocked()
|
||
|
Int soundInstanceID = _00E_NQ08_RustyCasketOpenSound.Play(Self as ObjectReference)
|
||
|
Int soundInstanceID2 = _00E_NQ08_RustyCasketOpenSealSound.Play(Self as ObjectReference)
|
||
|
NQ08.SetStage(25)
|
||
|
Self.BlockActivation(False)
|
||
|
Self.Activate(Game.GetPlayer() as ObjectReference, False)
|
||
|
EndIf
|
||
|
EndEvent
|