Skip to content

TargetType Enum

The TargetType enum defines the types of units that can be targeted by abilities or effects in Dota 2.

Enum Values

NameValueDescription
DOTA_UNIT_TARGET_NONE0Targets no specific unit type.
DOTA_UNIT_TARGET_HERO1Targets hero units.
DOTA_UNIT_TARGET_CREEP2Targets creep units.
DOTA_UNIT_TARGET_BUILDING4Targets building units, such as towers or barracks.
DOTA_UNIT_TARGET_COURIER16Targets couriers.
DOTA_UNIT_TARGET_BASIC18Targets basic units, including creeps and non-hero units.
DOTA_UNIT_TARGET_OTHER32Targets other unit types not covered by the above categories.
DOTA_UNIT_TARGET_ALL55Targets all units, including heroes, creeps, and buildings.
DOTA_UNIT_TARGET_TREE64Targets trees.
DOTA_UNIT_TARGET_CUSTOM128Targets a custom-defined unit group.