addSpeedModifier
addSpeedModifier(
step,character,speedModifier):void
Multiplies character’s top speed by 1 + more under key, for seconds
or until removed. The steer runs it at its MovementTrait.speed times
every modifier it holds, never below none and no faster than its
moveSpeed stat’s maximum. Different keys multiply, and a key added again
replaces its last values. A sprint, a crouch or an aim’s slow the player’s
own press starts. Call it from a predicted system, before
characters.systems.movement to change this step’s speed, or after it to
change the next step’s. An effect the room starts, such as a monster’s
slow, goes on the character’s moveSpeed stat instead, as slowCharacter
puts it there. As Unreal’s MaxWalkSpeed read through GetMaxSpeed and
Roblox’s WalkSpeed, with a key per writer so two plugins compose.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
PredictedStep |
character |
Entity |
speedModifier |
SpeedModifier |
Returns
Section titled “Returns”void