Skip to content

UnitOrder Enum

The UnitOrder enum defines the various types of orders that can be issued to units in the game.

Enum Values

NameValueDescription
DOTA_UNIT_ORDER_NONE0No order.
DOTA_UNIT_ORDER_MOVE_TO_POSITION1Move to a specific position.
DOTA_UNIT_ORDER_MOVE_TO_TARGET2Move to a specific target.
DOTA_UNIT_ORDER_ATTACK_MOVE3Perform an attack-move command.
DOTA_UNIT_ORDER_ATTACK_TARGET4Attack a specific target.
DOTA_UNIT_ORDER_CAST_POSITION5Cast an ability at a specific position.
DOTA_UNIT_ORDER_CAST_TARGET6Cast an ability on a specific target.
DOTA_UNIT_ORDER_CAST_TARGET_TREE7Cast an ability on a specific tree.
DOTA_UNIT_ORDER_CAST_NO_TARGET8Cast an ability with no target.
DOTA_UNIT_ORDER_CAST_TOGGLE9Toggle an ability on or off.
DOTA_UNIT_ORDER_HOLD_POSITION10Hold the current position.
DOTA_UNIT_ORDER_TRAIN_ABILITY11Train a specific ability.
DOTA_UNIT_ORDER_DROP_ITEM12Drop an item.
DOTA_UNIT_ORDER_GIVE_ITEM13Give an item to another unit.
DOTA_UNIT_ORDER_PICKUP_ITEM14Pick up an item.
DOTA_UNIT_ORDER_PICKUP_RUNE15Pick up a rune.
DOTA_UNIT_ORDER_PURCHASE_ITEM16Purchase an item.
DOTA_UNIT_ORDER_SELL_ITEM17Sell an item.
DOTA_UNIT_ORDER_DISASSEMBLE_ITEM18Disassemble an item.
DOTA_UNIT_ORDER_MOVE_ITEM19Move an item between slots.
DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO20Toggle an ability's auto-cast on or off.
DOTA_UNIT_ORDER_STOP21Stop the current action.
DOTA_UNIT_ORDER_TAUNT22Perform a taunt.
DOTA_UNIT_ORDER_BUYBACK23Perform a buyback.
DOTA_UNIT_ORDER_GLYPH24Activate the glyph of fortification.
DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH25Eject an item from the stash.
DOTA_UNIT_ORDER_CAST_RUNE26Cast a rune ability.
DOTA_UNIT_ORDER_PING_ABILITY27Ping an ability.
DOTA_UNIT_ORDER_MOVE_TO_DIRECTION28Move in a specific direction.
DOTA_UNIT_ORDER_PATROL29Patrol between points.
DOTA_UNIT_ORDER_VECTOR_TARGET_POSITION30Issue a vector-targeted ability order.
DOTA_UNIT_ORDER_RADAR31Use the radar ability.
DOTA_UNIT_ORDER_SET_ITEM_COMBINE_LOCK32Set the lock status for combining items.
DOTA_UNIT_ORDER_CONTINUE33Continue the previous order.
DOTA_UNIT_ORDER_VECTOR_TARGET_CANCELED34Cancel a vector-targeted ability.
DOTA_UNIT_ORDER_CAST_RIVER_PAINT35Cast a river paint ability.
DOTA_UNIT_ORDER_PREGAME_ADJUST_ITEM_ASSIGNMENT36Adjust item assignment during the pregame.
DOTA_UNIT_ORDER_DROP_ITEM_AT_FOUNTAIN37Drop an item at the fountain.
DOTA_UNIT_ORDER_TAKE_ITEM_FROM_NEUTRAL_ITEM_STASH38Take an item from the neutral item stash.
DOTA_UNIT_ORDER_MOVE_RELATIVE39Move relative to the current position.
DOTA_UNIT_ORDER_CAST_TOGGLE_ALT40Toggle an alternative ability.