Description
The DuckedSpeed
property of the PlayerController
class represents the speed at which the player moves when they are in a ducked or crouched position. This property is a float
value and can be adjusted to control how fast the player moves while ducking.
Usage
To use the DuckedSpeed
property, you can get or set its value to control the player's speed while ducking. This can be useful for adjusting gameplay dynamics, such as making the player move slower or faster when crouched.
Example
// Example of setting the DuckedSpeed property
PlayerController playerController = new PlayerController();
playerController.DuckedSpeed = 2.5f; // Set the ducked speed to 2.5 units per second
// Example of getting the DuckedSpeed property
float currentDuckedSpeed = playerController.DuckedSpeed;
// Use currentDuckedSpeed for logic or display purposes