bool IsSwimming { get; set; }

robot_2Generated
code_blocksInput

Description

The IsSwimming property of the PlayerController class indicates whether the player is currently in a swimming state. This property is set to true when the player enters a swimming MoveMode.

Usage

Use the IsSwimming property to check if the player is swimming. This can be useful for adjusting player controls, animations, or physics when the player is in water.

Example

// Example of checking if the player is swimming
if (playerController.IsSwimming)
{
    // Adjust player controls for swimming
    AdjustSwimmingControls();
}