1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
635 B

Scriptname _00E_StartQuestAndSetStage extends ObjectReference
Actor Property PlayerREF Auto
Quest Property QuestToSet Auto
ObjectReference Property VisionStartMarker Auto
Sound Property Whispers Auto
Event OnActivate (ObjectReference akActionRef)
if akActionRef == PlayerREF
QuestToSet.Start()
QuestToSet.SetStage(10)
Debug.Notification("Quest Set!")
RegisterForSleep()
endif
EndEvent
Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime)
Debug.Notification("Player went to sleep at: " + Utility.GameTimeToString(afSleepStartTime))
PlayerREF.MoveTo(VisionStartMarker)
Whispers.Play(PlayerREF)
endEvent