4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
997 B

Scriptname _00E_MQ16_TelaorYuslanFailsaveSC extends ObjectReference
Event OnUpdate()
If MQ16.GetCurrentStageID() < 155
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