globals
private group g
endglobals
private function Action takes nothing returns nothing
call GroupEnumUnitsInRange.....( g ) // WILL NOT WORK ANYMORE BECAUSE YOU ALREADY DESTROY THE GROUP
endfunction
private function Init takes nothing returns nothing
local trigger t = CreateTrigger ( )
call TrigggerAddAction.....()
set g = CreateGroup ( ) // You'd set it in INIT Function
call DestroyGroup ( g ) // You destroy it in Init Function, Of course this will work
set g = null // You null it in Init Function, Of course this will work
endfunction