2021-10-05 22:15:58 +00:00
|
|
|
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)
|
2021-10-05 22:15:58 +00:00
|
|
|
bDone = True
|
|
|
|
RegisterForSingleUpdate(3)
|
2024-01-10 14:08:24 +00:00
|
|
|
NQ26.SetCurrentStageID(35)
|
2021-10-05 22:15:58 +00:00
|
|
|
NQ26_SC2.Stop()
|
|
|
|
NQ26_SC2.ForceStart()
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnLoad()
|
2024-01-10 14:08:24 +00:00
|
|
|
Int qStage = NQ26.GetCurrentStageID()
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|