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
setForward(forward): Undefinedforward
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
setStrafe(strafe): Undefinedstrafe
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
setJump(jump): Undefinedjump
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
setSneak(sneak): Undefinedsneak
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
setSneakSlowDownMultiplier(multiplier): Undefinedmultiplier
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
getForward(): NumberReturns the forward movement.
getStrafe(): Number
getStrafe(): NumberReturns the strafe movement.
getSneakSlowDownMultiplier(): Number
getSneakSlowDownMultiplier(): NumberReturns the sneak slowdown multiplier.
isJump(): Boolean
isJump(): BooleanReturns whether you will jump or not.
isSneak(): Boolean
isSneak(): BooleanReturns whether you will be sneaking or not.
Last updated