2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_SceneStartScript extends ObjectReference
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
Event OnTrigger(ObjectReference akActionRef)
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
if(DoOnce == False)
|
2024-01-10 14:08:24 +00:00
|
|
|
if(QuestForScene.GetCurrentStageID() == QueststageForStart)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Debug.Trace("Queststage ok")
|
|
|
|
if(akActionRef == Game.GetPlayer())
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
DoOnce = True
|
2021-10-05 22:15:58 +00:00
|
|
|
StartScene.Start()
|
|
|
|
|
|
|
|
if StartScene.IsPlaying()
|
|
|
|
Debug.trace("scene is playing!")
|
|
|
|
endIf
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endevent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
bool DoOnce
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
Scene Property StartScene Auto
|
|
|
|
Quest Property QuestForScene Auto
|
|
|
|
Int Property QueststageForStart Auto
|
|
|
|
{Which stage is necessary for the triggerbox to take effect?}
|