Description
The HoldType
property of the CitizenAnimationHelper
class specifies the type of weapon the character is currently holding. This property is crucial for determining the appropriate animation to play based on the weapon type, ensuring that the character's actions and posture align with the weapon being used.
Usage
To use the HoldType
property, you can set it to one of the predefined values in the HoldTypes
enumeration. This will adjust the character's animation to match the specified weapon type.
Example
// Example of setting the HoldType property
// Assume 'animationHelper' is an instance of CitizenAnimationHelper
animationHelper.HoldType = CitizenAnimationHelper.HoldTypes.Rifle;
// This will set the character's animation to hold a rifle.