UnitOrder Enum
The UnitOrder enum defines the various types of orders that can be issued to units in the game.
Enum Values
| Name | Value | Description |
|---|---|---|
DOTA_UNIT_ORDER_NONE | 0 | No order. |
DOTA_UNIT_ORDER_MOVE_TO_POSITION | 1 | Move to a specific position. |
DOTA_UNIT_ORDER_MOVE_TO_TARGET | 2 | Move to a specific target. |
DOTA_UNIT_ORDER_ATTACK_MOVE | 3 | Perform an attack-move command. |
DOTA_UNIT_ORDER_ATTACK_TARGET | 4 | Attack a specific target. |
DOTA_UNIT_ORDER_CAST_POSITION | 5 | Cast an ability at a specific position. |
DOTA_UNIT_ORDER_CAST_TARGET | 6 | Cast an ability on a specific target. |
DOTA_UNIT_ORDER_CAST_TARGET_TREE | 7 | Cast an ability on a specific tree. |
DOTA_UNIT_ORDER_CAST_NO_TARGET | 8 | Cast an ability with no target. |
DOTA_UNIT_ORDER_CAST_TOGGLE | 9 | Toggle an ability on or off. |
DOTA_UNIT_ORDER_HOLD_POSITION | 10 | Hold the current position. |
DOTA_UNIT_ORDER_TRAIN_ABILITY | 11 | Train a specific ability. |
DOTA_UNIT_ORDER_DROP_ITEM | 12 | Drop an item. |
DOTA_UNIT_ORDER_GIVE_ITEM | 13 | Give an item to another unit. |
DOTA_UNIT_ORDER_PICKUP_ITEM | 14 | Pick up an item. |
DOTA_UNIT_ORDER_PICKUP_RUNE | 15 | Pick up a rune. |
DOTA_UNIT_ORDER_PURCHASE_ITEM | 16 | Purchase an item. |
DOTA_UNIT_ORDER_SELL_ITEM | 17 | Sell an item. |
DOTA_UNIT_ORDER_DISASSEMBLE_ITEM | 18 | Disassemble an item. |
DOTA_UNIT_ORDER_MOVE_ITEM | 19 | Move an item between slots. |
DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO | 20 | Toggle an ability's auto-cast on or off. |
DOTA_UNIT_ORDER_STOP | 21 | Stop the current action. |
DOTA_UNIT_ORDER_TAUNT | 22 | Perform a taunt. |
DOTA_UNIT_ORDER_BUYBACK | 23 | Perform a buyback. |
DOTA_UNIT_ORDER_GLYPH | 24 | Activate the glyph of fortification. |
DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH | 25 | Eject an item from the stash. |
DOTA_UNIT_ORDER_CAST_RUNE | 26 | Cast a rune ability. |
DOTA_UNIT_ORDER_PING_ABILITY | 27 | Ping an ability. |
DOTA_UNIT_ORDER_MOVE_TO_DIRECTION | 28 | Move in a specific direction. |
DOTA_UNIT_ORDER_PATROL | 29 | Patrol between points. |
DOTA_UNIT_ORDER_VECTOR_TARGET_POSITION | 30 | Issue a vector-targeted ability order. |
DOTA_UNIT_ORDER_RADAR | 31 | Use the radar ability. |
DOTA_UNIT_ORDER_SET_ITEM_COMBINE_LOCK | 32 | Set the lock status for combining items. |
DOTA_UNIT_ORDER_CONTINUE | 33 | Continue the previous order. |
DOTA_UNIT_ORDER_VECTOR_TARGET_CANCELED | 34 | Cancel a vector-targeted ability. |
DOTA_UNIT_ORDER_CAST_RIVER_PAINT | 35 | Cast a river paint ability. |
DOTA_UNIT_ORDER_PREGAME_ADJUST_ITEM_ASSIGNMENT | 36 | Adjust item assignment during the pregame. |
DOTA_UNIT_ORDER_DROP_ITEM_AT_FOUNTAIN | 37 | Drop an item at the fountain. |
DOTA_UNIT_ORDER_TAKE_ITEM_FROM_NEUTRAL_ITEM_STASH | 38 | Take an item from the neutral item stash. |
DOTA_UNIT_ORDER_MOVE_RELATIVE | 39 | Move relative to the current position. |
DOTA_UNIT_ORDER_CAST_TOGGLE_ALT | 40 | Toggle an alternative ability. |