- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I have been using the native DestroyLightning(...) but it doesn't do anything apparently (the lightning doesn't go away). Here is the relevant code.
Any reason why those pesky lightnings won't disappear?
I have been using the native DestroyLightning(...) but it doesn't do anything apparently (the lightning doesn't go away). Here is the relevant code.
JASS:
...
set bolts[0] = AddLightningEx("FORK", false, minX, minY, 0.0, minX, maxY, 0.0)
set bolts[1] = AddLightningEx("FORK", false, maxX, minY, 0.0, maxX, maxY, 0.0)
set bolts[2] = AddLightningEx("FORK", false, minX, minY, 0.0, maxX, minY, 0.0)
set bolts[3] = AddLightningEx("FORK", false, minX, maxY, 0.0, maxX, maxY, 0.0)
...
local integer i = 0
loop
exitwhen i == BOLTS_PER_RECT
call DestroyLightning(bolts[i])
set bolts[i] = null
set i = i + 1
endloop
Any reason why those pesky lightnings won't disappear?