float WalkSpeed { get; set; }

book_4_sparkGenerated
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 and can be adjusted to control the player's walking speed. It is part of the input feature set, allowing it to be influenced by player input settings.

Usage

To use the WalkSpeed property, you can get or set its value to control the player's walking speed. This can be useful for adjusting gameplay dynamics or responding to in-game events that affect movement speed.

Example

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