I'm having problems with an effect i'm creating, i'm using this code:
The code continues but this is the problematic part, i think the problem is that the timer doesn't accept functions that takes variables, but i'm not sure; tell me if that's true...
JASS:
local unit casting_unit
local location cast_loc
local location n
local effect array e
local integer i
local real m
local timer t
set t = CreateTimer()
set i = 0
set casting_unit = GetSpellAbilityUnit()
set cast_loc = GetUnitLoc(casting_unit)
set n = PolarProjectionBJ(cast_loc, 300, 270)
set m = 0
loop
exitwhen m >= (((1 + SquareRoot(5))/2)*300)
set m = m + 20
call TimerStart(t, 0.05, false, function Especial_Effect(n, m, 108))
set e<i> = GetLastCreatedEffectBJ()
set i = i + 1
endloop</i>
The code continues but this is the problematic part, i think the problem is that the timer doesn't accept functions that takes variables, but i'm not sure; tell me if that's true...