Strafe event
This page goes over the onStrafe event.
Last updated
This page goes over the onStrafe event.
Last updated
This event will be called upon strafing. Handler name is onStrafe
.
setForward(forward): Undefined
forward
Number
Forward movement to set.
Sets the event forward movement.
setStrafe(strafe): Undefined
strafe
Number
Strafe movement to set.
Sets the event strafe movement.
setFriction(friction): Undefined
friction
Number
Event friction to set.
Sets the event friction.
setYaw(yaw): Undefined
yaw
Number
Event yaw to set
Sets the event yaw.
getForward(): Number
Returns the forward movement of the event.
getStrafe(): Number
Returns the strafe movement of the event.
getFriction(): Number
Returns the friction of the event.
getYaw(): Number
Returns the yaw rotation of the event.
setSpeed(speed, motionMultiplier?): Undefined
speed
Number
Event speed to set.
motionMultiplier
Number
Motion multiplier for the speed. This argument is optional.
Applies the speed to the player.