39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
Scriptname _00E_SceneStartScript extends ObjectReference
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
Event OnTrigger(ObjectReference akActionRef)
|
||
|
|
||
|
if(DoOnce == 0)
|
||
|
if(QuestForScene.GetStage() == QueststageForStart)
|
||
|
|
||
|
Debug.Trace("Queststage ok")
|
||
|
if(akActionRef == Game.GetPlayer())
|
||
|
|
||
|
DoOnce = 1
|
||
|
StartScene.Start()
|
||
|
|
||
|
if StartScene.IsPlaying()
|
||
|
Debug.trace("scene is playing!")
|
||
|
endIf
|
||
|
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
endevent
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
bool Done
|
||
|
|
||
|
|
||
|
Scene Property StartScene Auto
|
||
|
Quest Property QuestForScene Auto
|
||
|
Int Property QueststageForStart Auto
|
||
|
{Which stage is necessary for the triggerbox to take effect?}
|
||
|
Actor Property TriggerActor = PlayerREF Auto
|
||
|
{Which actor shall trigger the scene to begin? Default: Player}
|