Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Particles

Module to work with vanilla and custom particles

Index

Functions

  • addFarParticle(type: number, x: number, y: number, z: number, vx: number, vy: number, vz: number, data?: number): void
  • Same as Particles.addParticle, but applies 'far' shader to the particle

    Parameters

    • type: number
    • x: number
    • y: number
    • z: number
    • vx: number
    • vy: number
    • vz: number
    • Optional data: number

    Returns void

  • addParticle(type: number, x: number, y: number, z: number, vx: number, vy: number, vz: number, data?: number): void
  • Spawns particle of given type on given coords with given velocity and additional parameters in the world. Note: called only on the client side! Use packets to spawn particles for multiple players.

    Parameters

    • type: number

      particle type's numeric id. If you want to spawn vanilla particles, see EParticleType and Native.ParticleType enums.

    • x: number
    • y: number
    • z: number
    • vx: number

      velocity for the particle by X-axis

    • vy: number

      velocity for the particle by Y-axis

    • vz: number

      velocity for the particle by Z-axis

    • Optional data: number

      additional params, currently don't know how to use, just put 0

    Returns void

Generated using TypeDoc