Difference between revisions of "GetSitting"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
(Removed a comma. The comma made it seem like the function would never return one, rather than that it would never return one under certain conditions.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
NOTE: This function will not return 1 or 11 if used on the player. | NOTE: This function will not return 1 or 11 if used on the player. | ||
== 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.}} | |||
== 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 == | |||
*[[GetSitState - Actor]] | |||
*[[IsOnMount - Actor]] | |||
*[[IsRidingMount]] | |||
[[Category:Console Commands]] | [[Category:Console Commands]] | ||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 05:10, 19 January 2024
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[edit | edit source]
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[edit | edit source]
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.