Difference between revisions of "GetSitting"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>DayDreamer
(→‎Bugs: GetSitState - Actor)
imported>Thingy Person
(Note about IsInFurnitureState)
Line 18: Line 18:
== Bugs ==
== Bugs ==
{{WarningBox|This condition function may not always return 11 through 14, and its Papyrus companion [[GetSitState - Actor]] returns only 0 through 4. As of version 1.6, other condition functions for determining mount state were added instead.}}
{{WarningBox|This condition function may not always return 11 through 14, and its Papyrus companion [[GetSitState - Actor]] returns only 0 through 4. As of version 1.6, other condition functions for determining mount state were added instead.}}
== Notes ==
GetSitting will never return 1, if an actor is sleeping in a bed or leaning on a wall. If you want to check whether an NPC (or the player) has entered a piece of furniture, and is currently in the Idle-animation state of this furniture, use [[IsInFurnitureState]].


== See Also ==
== See Also ==

Revision as of 16:10, 31 May 2020

Syntax:

 ActorID.GetSitting

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

0 - Not sitting
1 - Loading sitting idle
2 - Getting ready to sit
3 - Is sitting
4 - Getting ready to stand up
11 - Loading horse mount idle
12 - Getting ready to mount
13 - Is sitting on horse
14 - Getting ready to dismount

NOTE: This function will not return 1 or 11 if used on the player.

Bugs

Achtung.png This condition function may not always return 11 through 14, and its Papyrus companion GetSitState - Actor returns only 0 through 4. As of version 1.6, other condition functions for determining mount state were added instead.

Notes

GetSitting will never return 1, if an actor is sleeping in a bed or leaning on a wall. If you want to check whether an NPC (or the player) has entered a piece of furniture, and is currently in the Idle-animation state of this furniture, use IsInFurnitureState.

See Also