TargetType Enum
The TargetType enum defines the types of units that can be targeted by abilities or effects in Dota 2.
Enum Values
| Name | Value | Description |
|---|---|---|
DOTA_UNIT_TARGET_NONE | 0 | Targets no specific unit type. |
DOTA_UNIT_TARGET_HERO | 1 | Targets hero units. |
DOTA_UNIT_TARGET_CREEP | 2 | Targets creep units. |
DOTA_UNIT_TARGET_BUILDING | 4 | Targets building units, such as towers or barracks. |
DOTA_UNIT_TARGET_COURIER | 16 | Targets couriers. |
DOTA_UNIT_TARGET_BASIC | 18 | Targets basic units, including creeps and non-hero units. |
DOTA_UNIT_TARGET_OTHER | 32 | Targets other unit types not covered by the above categories. |
DOTA_UNIT_TARGET_ALL | 55 | Targets all units, including heroes, creeps, and buildings. |
DOTA_UNIT_TARGET_TREE | 64 | Targets trees. |
DOTA_UNIT_TARGET_CUSTOM | 128 | Targets a custom-defined unit group. |