37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
Scriptname _00E_SceneStartScript extends ObjectReference
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
Event OnTrigger(ObjectReference akActionRef)
|
|
|
|
if(DoOnce == False)
|
|
if(QuestForScene.GetCurrentStageID() == QueststageForStart)
|
|
|
|
Debug.Trace("Queststage ok")
|
|
if(akActionRef == Game.GetPlayer())
|
|
|
|
DoOnce = True
|
|
StartScene.Start()
|
|
|
|
if StartScene.IsPlaying()
|
|
Debug.trace("scene is playing!")
|
|
endIf
|
|
|
|
endif
|
|
endif
|
|
endif
|
|
endevent
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
bool DoOnce
|
|
|
|
|
|
Scene Property StartScene Auto
|
|
Quest Property QuestForScene Auto
|
|
Int Property QueststageForStart Auto
|
|
{Which stage is necessary for the triggerbox to take effect?}
|