Skip to main content

SetStepSoundOverrideLocoAction

A class in Root.Township, the global namespace.

Locomotion modifier action asset that swaps the player's footstep sound while it is active, for example to wading in water.

Constructors​

MemberWhat it is
SetStepSoundOverrideLocoAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private SoundEffect stepSoundThe footstep sound to use while the action runs. Defaults to WaterWading.

Methods​

MemberWhat it is
override void Begin(SmoothLocomotionPlayerController player)Sets the player's locomotion OverrideStepSound to stepSound.
override void Finish(SmoothLocomotionPlayerController player)Clears the step sound override back to SoundEffect.None.