• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Can't get this func to work?

Status
Not open for further replies.
Level 5
Joined
Nov 27, 2007
Messages
85
I'm trying to make a group of units that have the same type.
By using this native:

JASS:
native GroupEnumUnitsOfType takes group whichGroup, string unitname, boolexpr filter returns nothing

What confuses me is the "string unitname" part.
I guess it's supposed to "represent" the unit type, but... What should I put in its place?

I tried these, but they don't seem to work:
JASS:
call GroupEnumUnitsOfType(g, "Footman", null)
call GroupEnumUnitsOfType(g, "hf00", null)
call GroupEnumUnitsOfType(g, I2S('hf00'), null)
 
Status
Not open for further replies.
Top