• 0

    posted a message on How to loop each unit?

    I tried so far... local ugroup = nil ugroup = UnitGroup( 0, UnitFilter( 0, 0, 0, 0), 0, 1, 0)

    UnitGroupLoopBegin(ugroup)

    local count = 0 while (not UnitGroupLoopDone()) do count = count + 1 print("count: " .. tostring(count)) UnitGroupLoopStep()

    end UnitGroupLoopDone() UnitGroupClear(ugroup)

    but it seems not to work

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.