float SittingPose { get; set; }

robot_2Generated
code_blocksInput

Description

The SittingPose property of the CitizenAnimationHelper class represents the degree to which a character is sitting down. It is a floating-point value ranging from 0 to 1, where 0 indicates the character is not sitting at all, and 1 indicates the character is fully sitting down.

Usage

Use the SittingPose property to control or query the sitting state of a character in your game. This can be useful for animations where a character transitions from standing to sitting or vice versa.

Example

// Example of setting the SittingPose property
CitizenAnimationHelper animationHelper = new CitizenAnimationHelper();

// Set the character to be half-sitting
animationHelper.SittingPose = 0.5f;

// Check if the character is fully sitting
if (animationHelper.SittingPose == 1.0f)
{
    // Perform actions when the character is fully sitting
}