GetSleeping

Syntax:

 ActorID.GetSleeping

Returns a value based on the actor's current sleeping state:

0 - Not sleeping
1 - Loading sleeping idle
2 - Getting ready to sleep
3 - Is sleeping
4 - Getting ready to wake up

NOTE: This will not work on the player, as it is based on the actor's animation state. Use IsPCSleeping instead.