float WalkSpeed { get; set; }

robot_2Generated
code_blocksInput

Description

The WalkSpeed property of the PlayerController class defines the speed at which the player moves when walking. This property is a float value and can be adjusted to control the player's walking speed in the game.

Usage

To modify the walking speed of a player, you can set the WalkSpeed property to a desired value. This can be done in the player's initialization or during gameplay to dynamically adjust the player's movement speed.

Example

// Example of setting the WalkSpeed property
PlayerController playerController = new PlayerController();
playerController.WalkSpeed = 5.0f; // Sets the walking speed to 5 units per second