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