Перейти к основному содержанию

LaserShotProvider

Index

Functions

onProjectileHit

  • onProjectileHit(projectile: number, target: any): void
  • Parameters

    • projectile: number
    • target: any

    Returns void

removeShot

shootLaser

  • shootLaser(player: number, pos: Vector, vel: Vector, params: { blockBreaks?: number; dropChance?: number; power: number; range?: number; smelt?: boolean }): void
  • Parameters

    • player: number
    • pos: Vector
    • vel: Vector
    • params: { blockBreaks?: number; dropChance?: number; power: number; range?: number; smelt?: boolean }
      • optionalblockBreaks: number
      • optionaldropChance: number
      • power: number
      • optionalrange: number
      • optionalsmelt: boolean

    Returns void

updateAll

  • updateAll(): void
  • Returns void