In the melee AI scripts, you have access to units in general by their ID. Is there any way to convert that ID (ie. obtain) to a "unit" type for use in other functions?
For example, is there a way to reference your hero as a unit instead of simply hero_id ?
I've even tried using GroupEnumUnitsOfPlayer(g, ai_player, filterFunc) but the filter function is never called leading me to assume it is not detecting any units.
Any help would be greatly appreciated.
For example, is there a way to reference your hero as a unit instead of simply hero_id ?
I've even tried using GroupEnumUnitsOfPlayer(g, ai_player, filterFunc) but the filter function is never called leading me to assume it is not detecting any units.
Any help would be greatly appreciated.