Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

pushCharacter

pushCharacter(step, character, push): boolean

Holds character at velocity’s horizontal for seconds, or until endPush: a dash, a knockback, a launch pad. Its velocity is set at once, so a push from any system before core.systems.move moves it this step, and the steer neither ramps nor turns it while it lasts: the push goes straight, and a wall stops it as it stops a walk. At its end its ground speed is cut to endSpeed, and the steer ramps it from there. A velocity.y above 0 launches it as a jump does, once, on the step of the call, and gravity owns it from then on. Answers whether the push took, false where it 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): the player’s 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.

Parameter Type
step AuthoritativeStep | PredictedStep
character Entity
push Push

boolean