Background for Fallout 4
Member of the Actor script
intfunctionGetSleepState()Native

Description

Wiki Description

Gets this actor's sleep state.

NOTE: This does not work for the player.

Documentation Comment

Obtains this actor's sleep state, which is one of the following:
0 - Not sleeping
2 - Not sleeping, wants to sleep
3 - Sleeping
4 - Sleeping, wants to wake


Caveats


Examples

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

Auto-Generated Example

int returnedValue = myActor__toCallFunctionOn.GetSleepState()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.