Hit slow down event
This page goes over the onHitSlowDown event.
This event will be called upon you getting slowed down as a result of you attacking another entity. Handler name is onHitSlowDown
. Default slowdown value is 0.6, default sprint value is false.
getSlowDown(): Number
getSlowDown(): Number
Returns the amount of slowdown.
setSlowDown(slowDown): Undefined
setSlowDown(slowDown): Undefined
Argument
Type
Description
slowDown
Number
Amount of slowdown to apply.
Sets the amount of slowdown.
setSprint(sprint): Undefined
setSprint(sprint): Undefined
Argument
Type
Description
sprint
Boolean
Whether to allow sprinting or not.
Allows you to enable/disable sprinting.
isSprint(): Boolean
isSprint(): Boolean
Returns if the sprinting state is set to true or not.
Last updated