• Creates a lightning between two points.

    Parameters

    • codeName: string

      4 letter id from the LightningData.slk.

    • checkVisibility: boolean

      If this is true, the lightning won't be created and the function will return null unless the local player currently has visibility of at least one of the endpoints of the to be created lightning.

    • x1: number

      x-coordinate (World) of source point.

    • y1: number

      y-coordinate (World) of source point.

    • z1: number

      z-coordinate (World) of source point.

    • x2: number

      x-coordinate (World) of target point.

    • y2: number

      y-coordinate (World) of target point.

    • z2: number

      z-coordinate (World) of target point.

    Returns HandleHolder<"lightning">

Generated using TypeDoc