View Single Post
Old 09-21-2011, 01:54 PM   #8
default string
Fledermaus's Avatar
Join Date: May 2006
Posts: 705

Submissions (1)

Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)

Send a message via MSN to Fledermaus

Originally Posted by BBQ
Collapse JASS:
// Pretend that the following code is somewhere within a function.
local unit temporaryUnit

// Enumerate units and everything else...

    set temporaryUnit = FirstOfGroup(someGroup) // Pretend that the group is filled with units.
    exitwhen (temporaryUnit == null)
    // Do stuff with the "temporaryUnit" unit.
    call GroupRemoveUnit(someGroup, temporaryUnit) //You forgot this bit
Fledermaus is offline   Reply With Quote