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(): NumberReturns the amount of slowdown.
setSlowDown(slowDown): Undefined
setSlowDown(slowDown): UndefinedArgument
Type
Description
slowDown
Number
Amount of slowdown to apply.
Sets the amount of slowdown.
setSprint(sprint): Undefined
setSprint(sprint): UndefinedArgument
Type
Description
sprint
Boolean
Whether to allow sprinting or not.
Allows you to enable/disable sprinting.
isSprint(): Boolean
isSprint(): BooleanReturns if the sprinting state is set to true or not.
Last updated