Unit2Group
not ratedConverts a unit to a unit group, similar to convert player to player group. Be sure to destroy the group later to avoid a memory leak.
function Unit2Group takes unit whichUnit returns group
local group whichGroup = CreateGroup()
call GroupAddUnitSimple( whichUnit, whichGroup )
return whichGroup
endfunctionNo comments.