Warcraft III resources & community, 2003–2006 · archived

AddLightningExLoc

not rated
Submitted by Blade.dkFunctions0 downloads
Nothing special, just the "AddLightningEx" function with locations instead of x and y's.

Maybe someone can use it, since it can spare you some time.

Source

function AddLightningExLoc takes string codeName, boolean checkVisibility, location loc1, real z1, location loc2, real z2 returns lightning
    return( AddLightningEx(codeName, checkVisibility, GetLocationX(loc1), GetLocationY(loc1), z1, GetLocationX(loc2), GetLocationY(loc2), z2) )
endfunction

Comments

5
As i know, one of patches (1.18 maybe) allows locations with x, y, z (GetZ function)
Can't you return the damn thing directly instead of making a variable thus causing this to leak everytime?


Changed it now... And you're right it's damn dumb my old way of doing it... :D

What's the difference between your function and AddLightningLoc() ?


As I wrote in the description, this is AddLightningEx with locations, which means that the difference between this and AddLightningLoc is that this creates lightning effects with height...
What's the difference between your function and AddLightningLoc() ?
Can't you return the damn thing directly instead of making a variable thus causing this to leak everytime?
Found a bug, but now it's fixed... :D