Description
The IsClimbing
property of the CitizenAnimationHelper
class indicates whether the character is currently climbing. This boolean property can be used to determine if the climbing animation should be played or if climbing-specific logic should be executed.
Usage
To use the IsClimbing
property, you can access it directly from an instance of CitizenAnimationHelper
. This property is read-write, allowing you to both check if the character is climbing and set the climbing state programmatically.
Example
// Example of using the IsClimbing property
// Assume 'animationHelper' is an instance of CitizenAnimationHelper
if (animationHelper.IsClimbing)
{
// Execute logic for when the character is climbing
// For example, play climbing sound or adjust movement speed
}
// Set the climbing state
animationHelper.IsClimbing = true; // The character is now climbing