AddLightningEx

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 real

x-coordinate (World) of source point.

y1 real

y-coordinate (World) of source point.

z1 real

z-coordinate (World) of source point.

x2 real

x-coordinate (World) of target point.

y2 real

y-coordinate (World) of target point.

z2 real

z-coordinate (World) of target point.

comment

Creates a lightning between two points.

note

For lightning types see: screenshot and test map.

patch

1.18a

Source
common.j
return type
lightning
Source code
native AddLightningEx               takes string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns lightning