enderalse/scripts/source/_00e_fs_environmentscene02trigger.psc

20 lines
468 B
Plaintext

Scriptname _00E_FS_EnvironmentScene02Trigger extends ObjectReference
Event OnTriggerEnter (ObjectReference akActionREF)
if akActionRef == PlayerREF && !bDone
if FS_EnvironmentScene02.GetStage() == 0 && (CQJ04.GetStage() >= 35 || !CQJ04.IsRunning())
FS_EnvironmentScene02.SetStage(5)
bDone = true
Self.Delete()
EndIf
EndIf
EndEvent
bool bDone = false
Actor Property PlayerREF Auto
Quest Property FS_EnvironmentScene02 Auto
Quest Property CQJ04 Auto