The IsSwimming
property of the PlayerController
class is a boolean value that 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 is a boolean value that 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 triggering specific behaviors or animations when the player is in water.
// Example of checking if the player is swimming if (playerController.IsSwimming) { // Execute swimming-related logic playerController.Swim(); }