• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Groups unit in rect of unit type. HELP!

Status
Not open for further replies.
Level 7
Joined
Oct 19, 2015
Messages
286
JASS:
function GroupEnumAncientsInRectFilter takes nothing returns boolean
    return IsUnitType( GetFilterUnit(), UNIT_TYPE_ANCIENT )
endfunction
function GroupEnumAncientsInRect takes group g, rect r returns nothing
    call GroupEnumUnitsInRect( g, r, Filter( function GroupEnumAncientsInRectFilter ) )
endfunction
 
Status
Not open for further replies.
Top