sorry if i ask again..
i make trigger with event every 3 sec , i use handle counter to check if the trigger leaking or not..
but when the trigger already run 3 times ( at 10 sec) , the number increasing..
error
Events
Time - Every 3.00 seconds of game time
Conditions
Actions
Set MLoop[1] = 0
Set MLoop[1] = (MLoop[1] + 1)
Set Striker[18] = (Position of Hero[MLoop[1]])
Set Unit_Groups = (Units within 750.00 of Striker[18] matching ((((Matching unit) is A Hero) Equal to True) and (((Player number of (Owner of (Matching unit))) Greater than or equal to 1) and (((Player number of (Owner of (Matching unit))) Less than or equal to 9) and (((Match
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Unit_Groups) Greater than 0
Then - Actions
Unit Group - Pick every unit in Unit_Groups and do (Actions)
Loop - Actions
Unit - Cause Hero[MLoop[1]] to damage (Picked unit), dealing 5.00 damage of attack type Spells and damage type Normal
Else - Actions
Custom script: call DestroyGroup(udg_Unit_Groups)
Custom script: set udg_Unit_Groups = null
Custom script: call RemoveLocation(udg_Striker[18])
Wait 0.10 seconds
Set MLoop[1] = (MLoop[1] + 1)
Set Striker[18] = (Position of Hero[MLoop[1]])
Set Unit_Groups = (Units within 750.00 of Striker[18] matching ((((Matching unit) is A Hero) Equal to True) and (((Player number of (Owner of (Matching unit))) Greater than or equal to 1) and (((Player number of (Owner of (Matching unit))) Less than or equal to 9) and (((Match
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Unit_Groups) Greater than 0
Then - Actions
Unit Group - Pick every unit in Unit_Groups and do (Actions)
Loop - Actions
Unit - Cause Hero[MLoop[1]] to damage (Picked unit), dealing 5.00 damage of attack type Spells and damage type Normal
Else - Actions
Custom script: call DestroyGroup(udg_Unit_Groups)
Custom script: set udg_Unit_Groups = null
Custom script: call RemoveLocation(udg_Striker[18])
Handle counter jass,
function HandleCount takes nothing returns nothing
local location L = Location(0,0)
call BJDebugMsg(I2S(GetHandleId(L)-0x100000))
call RemoveLocation(L)
set L = null
endfunction
//===========================================================================
function InitTrig_HandleCount takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent(t,0.09,true)
call TriggerAddAction(t,function HandleCount)
endfunction
can you help me finding the leak ?