The FootstepMixer
property in the PlayerController
class is used to manage the audio mixing for footstep sounds. It is of type Sandbox.Audio.MixerHandle
, which allows for control over audio mixing parameters specific to footsteps.
The FootstepMixer
property in the PlayerController
class is used to manage the audio mixing for footstep sounds. It is of type Sandbox.Audio.MixerHandle
, which allows for control over audio mixing parameters specific to footsteps.
To use the FootstepMixer
property, you can access it directly from an instance of PlayerController
. This property is typically used to adjust audio settings related to footstep sounds, such as volume or pitch, through the associated audio mixer handle.
// Example of accessing the FootstepMixer property PlayerController playerController = new PlayerController(); Sandbox.Audio.MixerHandle footstepMixer = playerController.FootstepMixer; // Example of using the mixer handle to adjust volume footstepMixer.SetVolume(0.8f);