Skip to main content

SpeedModifierLocoAction

A class in Root.Township, the global namespace.

Locomotion modifier action asset that scales the player's movement speed while active, for example in deep water.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float speedModifierSpeed multiplier applied while active.

Methods​

MemberWhat it is
override void Begin(SmoothLocomotionPlayerController player)Sets the player's EnvironmentSpeedModifier to speedModifier.
override void Finish(SmoothLocomotionPlayerController player)Resets EnvironmentSpeedModifier to 1.