enderalse/scripts/source/_00e_startscenetrigger.psc

37 lines
728 B
Plaintext
Raw Normal View History

Scriptname _00E_StartSceneTrigger extends ObjectReference
{This script can be placed on any trigger to start a scene property.
}
bool Property SetStageDesired Auto
int DoOnce
Event OnTriggerEnter(ObjectReference akActionRef)
if (akActionRef == Game.GetPlayer())
if ( DoOnce == 0 )
;Debug.Notification("Scene initiated.")
QuestStart.Start()
SceneToStart.Start()
if SetStageDesired == true
QuestStart.SetStage(QuestStage)
endif
DoOnce = 1
else
;Debug.Notification("Scene failed to start.")
endif
endif
if ScenetoStart.IsPlaying()
;Debug.Notification("Scene is running.")
endif
EndEvent
Scene Property SceneToStart Auto
Quest Property QuestStart Auto
int Property QuestStage Auto