Heres my trigger
How i can make is more simple? i need to pass target location to Func002A. Also with boolean. does it have to be so complicated? cant i just put my condition inside "GetUnitsInRange..."?
JASS:
unction Trig_Recall_Func001002003 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetOwningPlayer(GetTriggerUnit()) )
endfunction
function Trig_Recall_Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), ->target <- )
endfunction
function Trig_Recall_Actions takes nothing returns nothing
local location start = GetUnitLoc(GetTriggerUnit())
local group grp = GetUnitsInRangeOfLocMatching(800.00, start, Condition(function Trig_Recall_Func001002003))
local location target = GetRectCenter(gg_rct_HeroRez)
call ForGroupBJ( grp, function Trig_Recall_Func002A )
call RemoveLocation(start)
call RemoveLocation(target)
set start = null
set target = null
call DestroyGroup(grp)
set grp = null
endfunction
How i can make is more simple? i need to pass target location to Func002A. Also with boolean. does it have to be so complicated? cant i just put my condition inside "GetUnitsInRange..."?