38 lines
947 B
Plaintext
38 lines
947 B
Plaintext
Scriptname _00E_CQC05_LoseGameWhenNearSC extends ObjectReference
|
|
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
|
|
Event OnUpdate()
|
|
|
|
If CQC05.GetCurrentStageID() < 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 |