neetmaster
New Member
- Reaction score
- 0
Code:
function Trig_Learning_Spells_Func002A takes nothing returns nothing
set udg_spellLearningUnit = GetEnumUnit()
endfunction
Code:
function Trig_Learning_Spells_Actions takes nothing returns nothing
set udg__tempUnitGroup = GetUnitsOfPlayerAndTypeId(GetTriggerPlayer(), 'H002')
call ForGroupBJ( udg__tempUnitGroup, function Trig_Learning_Spells_Func002A )
call DestroyGroup (udg__tempUnitGroup)
How can I merge the upper one into the lower one so I will have less functions in a trigger?
Thanks.