Move input event

This page goes over the onMoveInput event.

This event will be called upon the player moving manually. Handler name is onMoveInput.

setForward(forward): Undefined

Argument
Type
Description

forward

Number

Amount of forward movement to apply.

Sets the amount of forward movement. By default, if you're not sneaking, the value is either 1 or 0.

setStrafe(strafe): Undefined

Argument
Type
Description

strafe

Number

Amount of strafe movement to apply.

Sets the amount of strafe movement. By default, if you're not sneaking, the value is either 1 or 0.

setJump(jump): Undefined

Argument
Type
Description

jump

Boolean

Whether to jump or not.

Sets the jump state. By default, if you're not holding the jump key, the value will be false.

setSneak(sneak): Undefined

Argument
Type
Description

sneak

Boolean

Whether to sneak or not.

Sets the sneaking state. By default, if you're not holding the sneaking key, the value will be false.

setSneakSlowDownMultiplier(multiplier): Undefined

Argument
Type
Description

multiplier

Number

Amount of sneak slowdown multiplier to apply.

Sets the amount of sneak slowdown multiplier. By default, if you're not sneaking, the value is 0.3

getForward(): Number

Returns the forward movement.

getStrafe(): Number

Returns the strafe movement.

getSneakSlowDownMultiplier(): Number

Returns the sneak slowdown multiplier.

isJump(): Boolean

Returns whether you will jump or not.

isSneak(): Boolean

Returns whether you will be sneaking or not.

Last updated