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.
 
 
 

38 lines
938 B

Scriptname _00E_CQC05_LoseGameWhenNearSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnUpdate()
If CQC05.GetStage() < 35
if PlayerREF.GetDistance(_00E_SC_KurmaiREF) <= 1300
Game.QuitToMainMenu()
Else
RegisterForSingleUpdate(3)
EndIf
EndIf
EndEvent
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
RegisterForSingleUpdate(5)
EndIf
EndEvent
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Quest Property CQC05 Auto
Actor Property PlayerREF Auto
Actor Property _00E_SC_KurmaiREF Auto