The FootstepMixer
property of the PlayerController
class is used to manage the audio mixing for footstep sounds. It is of type Sandbox.Audio.MixerHandle
, which allows for the control and manipulation of audio properties related to footsteps.
The FootstepMixer
property of the PlayerController
class is used to manage the audio mixing for footstep sounds. It is of type Sandbox.Audio.MixerHandle
, which allows for the control and manipulation of audio properties related to footsteps.
To use the FootstepMixer
property, you can access it directly from an instance of PlayerController
. This property is particularly useful when you want to adjust the audio settings for footstep sounds, such as volume or pitch, to enhance the player's audio experience.
// Example of accessing the FootstepMixer property PlayerController playerController = new PlayerController(); Sandbox.Audio.MixerHandle footstepMixer = playerController.FootstepMixer; // Example of using the FootstepMixer to adjust volume footstepMixer.SetVolume(0.5f); // Set the footstep volume to 50%