pushCharacter
pushCharacter(
step,character,push):boolean
Holds character at velocity’s horizontal for seconds: a dash, a
knockback, a launch pad. Her velocity is set at once, so a push from
any system before core.systems.move moves her this step, and
the steer neither ramps nor turns her while it lasts: the push goes
straight, and a wall stops her as it stops a walk. At its end her
ground speed is cut to endSpeed, and the steer ramps her from there.
A velocity.y above 0 launches her as a jump does, once, on the step
of the call, and gravity owns her from then on. Answers whether the
push took, false where she is under one of a higher priority.
A speed modifier never changes a push. Call it from a predicted system, or,
for an effect the room starts, such as a monster’s slam, from any
system with the room’s step, inside if (step.authoritative): her page
learns of it as one correction and predicts the rest of the push. As
Unreal’s constant-force root motion source in override mode, with its
priorities and endings, and its LaunchCharacter.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
AuthoritativeStep | PredictedStep |
character |
Entity |
push |
Push |
Returns
Section titled “Returns”boolean