Monovertex
Formerly Smith_S9
- Reaction score
- 1,461
Okay, I'm trying to make an fire effect(I don't know how to call it, sorry ). Here's the code:
But it simply doesn't works... it creates only the first circle... Thanks in advance.
Code:
local unit cast = GetTriggerUnit()
local real x = GetUnitX(cast)
local real y = GetUnitY(cast)
local unit var1
local real m = 0
local real a = 50.00
local real b = 90.00
loop
set a = a+b
exitwhen a == 290.00
loop
exitwhen m == 360.00
set var1 = CreateUnitAtLoc(GetOwningPlayer(cast), 'h004', PolarProjectionBJ(Location(x, y), a, m), m)
call UnitApplyTimedLife(var1, 'BTLF', 4.00)
set m = m+30.00
endloop
set b = b-10.00
endloop
But it simply doesn't works... it creates only the first circle... Thanks in advance.