Rise 6 Scripting API
  • Introduction
  • Examples
    • Simple vanilla hop
    • Simple collide fly bypass
    • Events example
    • Example settings
    • Exempted value speed bypass
    • Packet nofall
    • Killaura
    • Arraylist
  • API Documentation
    • Scripting metadata
    • Objects
      • FontRenderer
      • Vector
        • Vector3
        • Vector2
      • ItemStack
      • BlockPos
      • Block
      • Inventory
      • Command
      • Module
      • EntityLiving
      • Entity
    • Global namespaces
      • render
      • input
      • world
      • rise
      • player
      • mc
      • network
      • packet
    • Events
      • Load event
      • Unload event
      • Module events
        • Attack event
        • World Change Event
        • Module Toggle Event
        • Server Kick event
        • Game event
        • Chat input event
        • Click event
        • Entity render event
        • Hit slow down event
        • Jump event
        • Keyboard Input event
        • Kill event
        • Move input event
        • Post motion event
        • Pre motion event
        • Strafe event
        • Pre update event
        • Render 2D event
        • Render 3D event
        • Water event
        • Tick event
        • Slow down event
      • onExecute event
Powered by GitBook
On this page
  • getSlowDown(): Number
  • setSlowDown(slowDown): Undefined
  • setSprint(sprint): Undefined
  • isSprint(): Boolean
  1. API Documentation
  2. Events
  3. Module events

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

Argument
Type
Description

slowDown

Number

Amount of slowdown to apply.

Sets the amount of slowdown.

setSprint(sprint): Undefined

Argument
Type
Description

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.

PreviousEntity render eventNextJump event

Last updated 2 years ago