float DuckedSpeed { get; set; }

book_4_sparkGenerated
code_blocksInput

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 is part of the input feature set, allowing it to be adjusted to control the player's movement speed while ducking.

Usage

To use the DuckedSpeed property, you can get or set its value to control how fast the player moves when ducked. This can be useful for game mechanics where you want to adjust the player's speed based on their stance or to create different movement dynamics.

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;
Console.WriteLine($"Current Ducked Speed: {currentDuckedSpeed}");