Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YExplosive

Index

Constructors

constructor

Methods

Static defuse

  • defuse(target: YEntity, resetTimer: boolean): void
  • Allows to stop already ignited explosive from exploding.

    Parameters

    • target: YEntity
    • resetTimer: boolean

    Returns void

Static getDamage

  • getDamage(target: YEntity): number
  • Returns damage output of target explosive.

    Parameters

    Returns number

Static getRadius

  • getRadius(target: YEntity): number
  • Returns explosion radius output of target explosive.

    Parameters

    Returns number

Static getSecondsToExplode

  • getSecondsToExplode(target: YEntity): number
  • Returns timer output of target explosive.

    Parameters

    Returns number

Static ignite

  • Ignite (start explosion timer) an explosive (e.g dynamite).

    Parameters

    Returns void

Static setDamage

  • setDamage(target: YEntity, value: number): void
  • Allows to set damage target explosive.

    Parameters

    Returns void

Static setRadius

  • setRadius(target: YEntity, value: number): void
  • Allows to set explosion radius target explosive.

    Parameters

    Returns void

Static setSecondsToExplode

  • setSecondsToExplode(target: YEntity, value: number): void
  • Allows to set timer of target explosive.

    Parameters

    Returns void

Generated using TypeDoc