The AimAngle
property of the CitizenAnimationHelper
class represents the direction in which the character is aiming. This property is of type Rotation
, which allows you to specify the orientation of the aim in 3D space.
The AimAngle
property of the CitizenAnimationHelper
class represents the direction in which the character is aiming. This property is of type Rotation
, which allows you to specify the orientation of the aim in 3D space.
Use the AimAngle
property to set or get the current aiming direction of the character. This can be useful for aligning the character's animations with the direction they are supposed to be aiming at, such as when aiming a weapon or looking in a specific direction.
// Example of setting the AimAngle property var animationHelper = new CitizenAnimationHelper(); // Set the aim angle to a specific rotation animationHelper.AimAngle = Rotation.FromYawPitchRoll(45, 0, 0); // Get the current aim angle Rotation currentAim = animationHelper.AimAngle;