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

Returns the amount of slowdown.

setSlowDown(slowDown): Undefined

ArgumentTypeDescription

slowDown

Number

Amount of slowdown to apply.

Sets the amount of slowdown.

setSprint(sprint): Undefined

ArgumentTypeDescription

sprint

Boolean

Whether to allow sprinting or not.

Allows you to enable/disable sprinting.

isSprint(): Boolean

Returns if the sprinting state is set to true or not.

Last updated