The RunSpeed
property of the PlayerController
class defines the speed at which the player moves when running. This property is a float
value and can be adjusted to control the player's running speed.
The RunSpeed
property of the PlayerController
class defines the speed at which the player moves when running. This property is a float
value and can be adjusted to control the player's running speed.
To modify the player's running speed, set the RunSpeed
property to the desired value. This can be done in the player's initialization or during gameplay to dynamically adjust the running speed based on game conditions.
// Example of setting the RunSpeed property PlayerController playerController = new PlayerController(); playerController.RunSpeed = 10.0f; // Set the running speed to 10 units per second