GetSleepState - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Gets this actor's sleep state.

NOTE: This does not work for the player.

Syntax[edit | edit source]

int Function GetSleepState() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The actor's current sleep state.

The following values are returned:

  • 4: Sleeping, wants to wake
  • 3: Sleeping
  • 2: Not sleeping, wants to sleep
  • 0: Not sleeping

Examples[edit | edit source]

; Is the actor sleeping?
if (Sleepy.GetSleepState() == 3)
  Debug.Trace("Sleepy is sleeping!")
endIf

See Also[edit | edit source]