2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQ16_TelaorYuslanFailsaveSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnUpdate()
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If MQ16.GetCurrentStageID() < 155
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
If _00E_MC_YuslanREF.GetDistance(MQ16_SC12_YuslanStartREF003) >= 700
|
|
|
|
_00E_MC_YuslanREF.MoveTo(MQ16_SC12_FailsaveMarker)
|
|
|
|
_00E_MC_YuslanREF.EvaluatePackage()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If _00E_MC_TealorREF.GetDistance(MQ16_SC12_TealorMarker) >= 700 && !_00E_MC_TealorREF.IsInDialogueWithPlayer()
|
|
|
|
_00E_MC_TealorREF.MoveTo(MQ16_SC12_FailsaveMarker)
|
|
|
|
_00E_MC_TealorREF.EvaluatePackage()
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
If !bDone && akActionRef == PlayerREF
|
|
|
|
bDone = True
|
|
|
|
RegisterForSingleUpdate(10)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Actor Property _00E_MC_TealorREF Auto
|
|
|
|
Actor Property _00E_MC_YuslanREF Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property MQ16 Auto
|
|
|
|
|
|
|
|
ObjectReference Property MQ16_SC12_FailsaveMarker Auto
|
|
|
|
ObjectReference Property MQ16_SC12_TealorMarker Auto
|
|
|
|
ObjectReference Property MQ16_SC12_YuslanStartREF003 Auto
|
|
|
|
|
|
|
|
bool bDone
|