Warcraft III resources & community, 2003–2006 · archived

Unit2Group

not rated
Submitted by AltSubmitterVariable Change0 downloads
Converts 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.

Source

function Unit2Group takes unit whichUnit returns group
    local group whichGroup = CreateGroup()

    call GroupAddUnitSimple( whichUnit, whichGroup )

    return whichGroup
endfunction

Comments

0

No comments.