Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EntityHurtFunction

Function used in "EntityHurt" callback

Hierarchy

  • EntityHurtFunction

Callable

  • __call(attacker: number, entity: number, damageValue: number, damageType: number, someBool1: boolean, someBool2: boolean): void
  • Function used in "EntityHurt" callback

    Parameters

    • attacker: number

      if an entity was hurt by another entity, attacker's unique id, -1 otherwise

    • entity: number

      entity that is hurt

    • damageValue: number

      amount of damage produced to entity

    • damageType: number

      damage source id

    • someBool1: boolean

      some boolean value

    • someBool2: boolean

      some boolean value

    Returns void

Generated using TypeDoc