addSpeedModifier
addSpeedModifier(
step,character,speedModifier):void
Multiplies character’s top speed by 1 + more under key, for seconds
or until removed: the steer runs her at her MovementTrait.speed
times every modifier she holds, different keys multiplying and a key
added again replacing its last values, never below none and no faster
than her moveSpeed stat’s maximum. A sprint, a crouch or an aim’s
slow her 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 her 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