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