float FootstepVolume { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The FootstepVolume property of the PlayerController class determines the volume level of the footstep sounds produced by the player character. This property is a float value, allowing for precise control over the sound intensity of footsteps.

Usage

To adjust the footstep volume for a player character, set the FootstepVolume property to a desired float value. A higher value will result in louder footstep sounds, while a lower value will make them quieter. This property can be useful for customizing the audio experience based on different environments or player preferences.

Example

// Example of setting the FootstepVolume property
PlayerController playerController = new PlayerController();
playerController.FootstepVolume = 0.75f; // Set footstep volume to 75% of the maximum volume