- Found in:
- Vanilla
eventOnPlayerSleepStop(boolabInterrupted, ObjectReferenceakBed)
[DEV SERVER] Loading description...
Caveats
CK Wiki - Notes
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
Parameters
boolabInterrupted
CK Wiki Description
Whether sleep was interrupted or not.
Examples
Function SomeFunction()
RegisterForPlayerSleep() ; Before we can use OnSleepStart we must register.
EndFunction
Event OnPlayerSleepStop(bool abInterrupted, ObjectReference akBed)
if abInterrupted
Debug.Trace("Player was woken by something while sleeping in " + akBed + "!")
else
Debug.Trace("Player woke up naturally from " + akBed)
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends ScriptObject
event OnPlayerSleepStop(bool abInterrupted, ObjectReference akBed)
Debug.trace("Event received - OnPlayerSleepStop: abInterrupted = " + abInterrupted + " akBed = " + akBed)
endEvent