enderalse/source/scripts/_00e_nq26_pathiraportfailsavesc.psc

42 lines
866 B
Plaintext
Raw Permalink Normal View History

Scriptname _00E_NQ26_PathiraPortFailsaveSC extends ObjectReference
Event OnUpdate()
If MuldirRef.GetParentCell() != PlayerREF.GetParentCell()
MuldirRef.Enable()
MuldirRef.MoveTo(NQ26PortMarker01)
EndIf
EndEvent
Event OnTriggerEnter(ObjectReference akActionRef)
If !bDone
2024-01-10 14:08:24 +00:00
If akActionRef == PlayerREF && (NQ26.GetCurrentStageID() >= 20 && NQ26.GetCurrentStageID() < 35)
bDone = True
RegisterForSingleUpdate(3)
2024-01-10 14:08:24 +00:00
NQ26.SetCurrentStageID(35)
NQ26_SC2.Stop()
NQ26_SC2.ForceStart()
EndIf
EndIf
EndEvent
Event OnLoad()
2024-01-10 14:08:24 +00:00
Int qStage = NQ26.GetCurrentStageID()
If qStage >= 30 && qStage < 50
(NQ26 as _00E_NQ26_Questfunctions).StartNQ26Explosion()
EndIf
EndEvent
bool bDone
Actor Property MuldirRef Auto
Actor Property PlayerREF Auto
Quest Property NQ26 Auto
Scene Property NQ26_SC2 Auto
ObjectReference Property NQ26PortMarker01 Auto