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