Difference between revisions of "GetSleeping"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SJML Bot
(Bot creating condition functions pages.)
 
imported>Chesko
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Syntax:'''
[[Category:Console Commands]]
[[Category:Condition Functions]]
 
== Syntax ==
   ActorID.GetSleeping
   ActorID.GetSleeping


Returns a value based on the actor's current sleeping state:
== Return Value ==
:0 - Not sleeping  
The actor's current sleep state.
:1 - Loading sleeping idle   
 
:2 - Getting ready to sleep   
*0 - Not sleeping  
:3 - Is sleeping   
*1 - Loading sleeping idle   
:4 - Getting ready to wake up   
*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.
== Notes ==
* This will return the player's sleeping animation state as well, which is not normally used. If you are trying to determine if the player is sleeping by using a bed or similar, use [[IsPCSleeping]] instead.


[[Category:Console Commands]]
== See Also ==
 
*[[Actor Script]]
[[Category:Condition Functions]]
*[[GetSleepState - Actor]]
*[[IsPCSleeping]]

Latest revision as of 10:59, 1 January 2013


Syntax[edit | edit source]

 ActorID.GetSleeping

Return Value[edit | edit source]

The actor's current sleep state.

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

Notes[edit | edit source]

  • This will return the player's sleeping animation state as well, which is not normally used. If you are trying to determine if the player is sleeping by using a bed or similar, use IsPCSleeping instead.

See Also[edit | edit source]