call AddLightningEx ( "CLSB", true, X, Y, Z, X2, Y2, Z2 )
Creates a lightning effect
call MoveLightningEx ( whichLightning, true, X, Y, Z, X2, Y2, Z2 )
Moves a lightning effect
X/Y, X2/Y2 represent the coordinates of the two points of the lightning effect
Z, Z2 is the height of the lightning effect
An example of creating the effect:
-
Custom script: set udg_X = GetUnitX(Target1)
-
Custom script: set udg_Y = GetUnitY(Target1)
-
Custom script: set udg_X2 = GetUnitX(Target2)
-
Custom script: set udg_Y2 = GetUnitY(Target2)
-
Custom script: set udg_Z = (70.00)
-
Custom script: set udg_Z2 = (70.00)
-
Custom script: call AddLightningEx ( "CLSB", true, udg_X, udg_Y, udg_Z, udg_X2, udg_Y2, udg_Z2 )
-
Set l = (Last created lightning effect)