Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
25 lines
635 B
25 lines
635 B
3 years ago
|
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
|
||
|
|