enderalse/scripts/source/_00e_cqj02_jespartowerfailsavesc.psc

57 lines
1.2 KiB
Plaintext

Scriptname _00E_CQJ02_JesparTowerFailsaveSC extends ObjectReference Conditional
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && !bJesparInCQJ02Volume
bPlayerInCQJ02Volume = True
if CQJ02 == None
CQJ02 = Game.GetFormFromFile(0x0013C942, "Skyrim.esm") as _00E_CQJ02_Functions
EndIf
If CQJ02.GetStage() == 15 && CQJ02.IsRunning()
bDone = True
if !CQJ02.CQJ02_SC02_Lysia_01.IsPlaying()
CQJ02.CQJ02_SC02_Lysia_01.ForceStart()
EndIf
if CQJ02_SC02_JesparPortMarkerREF != NONE
_00E_MC_JesparREF.MoveTo(CQJ02_SC02_JesparPortMarkerREF)
Else
_00E_MC_JesparREF.MoveTo(Game.GetPlayer())
EndIf
bJesparInCQJ02Volume = True
EndIf
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
bPlayerInCQJ02Volume = False
EndIf
if akActionRef == _00E_MC_JesparREF
bJesparInCQJ02Volume = False
EndIf
EndEvent
bool bDone
bool Property bPlayerInCQJ02Volume Auto Hidden Conditional
bool Property bJesparInCQJ02Volume Auto Hidden Conditional
Actor Property PlayerREF Auto
Actor Property _00E_MC_JesparREF Auto
ObjectReference Property CQJ02_SC02_JesparPortMarkerREF Auto
_00E_CQJ02_Functions Property CQJ02 Auto