GroupEnumInRect + 'Aloc' units

Troll-Brain

You can change this now in User CP.
Reaction score
85
JASS:
library TestEnum initializer onInit

private function filter takes nothing returns boolean
    // you can write what you want, this text won't be showed anyway
    call BJDebugMsg("Me > Chuck Norris")
    return false
endfunction

private function onInit takes nothing returns nothing
    call UnitAddAbility(CreateUnit(Player(0),'hpea',0.,0.,0.),'Aloc')
    call TriggerSleepAction(1.)
    call GroupEnumUnitsInRect(CreateGroup(),GetWorldBounds(),function filter)
    // just in case some one worry about the TSA inside an initializer
    call BJDebugMsg("see you are allowed to use TSA in a library initializer but not in a scope one, because library initializers are ExecuteFunc calls")
endfunction

endlibrary


I was pretty sure it worked before, i'm wrong ?
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
IsUnitInRegion is for GroupEnumInRect, maybe you may only want dummies in certain rect... ><
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
IsUnitInRegion is for GroupEnumInRect, maybe you may only want dummies in certain rect... ><
Ok, i didn't thought about that, i would just use the coordinates instead of creating a region though.

Anyway the point of this thread is not to find a way to enum 'Aloc' units, you still haven't answer to my question xD
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
As far as I'm aware, it never worked.
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
Ok, i'm going to be crazy maybe, first step isn't to believe in things were never existed ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top