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
.
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
.
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 of checking if the player is ducking if (playerController.IsDucking) { // Perform actions when the player is ducking AdjustMovementSpeedForDucking(); }