42 lines
830 B
Plaintext
42 lines
830 B
Plaintext
|
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
|
||
|
If akActionRef == PlayerREF && (NQ26.GetStage() >= 20 && NQ26.GetStage() < 35)
|
||
|
bDone = True
|
||
|
RegisterForSingleUpdate(3)
|
||
|
NQ26.SetStage(35)
|
||
|
NQ26_SC2.Stop()
|
||
|
NQ26_SC2.ForceStart()
|
||
|
EndIf
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnLoad()
|
||
|
Int qStage = NQ26.GetStage()
|
||
|
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
|