robot_2Generated
code_blocksInput

Description

The Handedness property of the CitizenAnimationHelper class specifies the handedness of the weapon being used by the character. It indicates whether the weapon is held in the left hand, right hand, or both hands. This property is applicable to certain hold types, such as Pistol and HoldItem.

Usage

To set the handedness of a weapon for a character, assign a value from the Hand enumeration to the Handedness property. This will affect how the character animates when holding a weapon.

Example

// Example of setting the handedness of a weapon
var animationHelper = new CitizenAnimationHelper();
animationHelper.Handedness = CitizenAnimationHelper.Hand.Right; // Set to right-handed

// Check the current handedness
if (animationHelper.Handedness == CitizenAnimationHelper.Hand.Left)
{
    // Perform actions specific to left-handed weapons
}