bool IsDucking { get; set; }

robot_2Generated
code_blocksInput

Description

The IsDucking property of the PlayerController class indicates whether the player is currently in a ducking position. This property returns true if the player is ducking, otherwise it returns false.

Usage

Use the IsDucking property to check if the player is currently ducking. This can be useful for implementing game mechanics that depend on the player's stance, such as adjusting movement speed or collision detection.

Example

// Example of checking if the player is ducking
if (playerController.IsDucking)
{
    // Perform actions when the player is ducking
    AdjustMovementSpeedForDucking();
}