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
.
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
.
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 of checking if the player is swimming if (playerController.IsSwimming) { // Adjust player controls for swimming AdjustSwimmingControls(); }