Cob Extensions - Orders

Ext. ID Ext. Name Type Description Properties
137 CURRENT_ORDER_TYPE GET returns caller or UnitID unit - current order type
Parameters: UnitID or none
-
138 CURRENT_ORDER_TARGET_POS GET returns current order target position -
139 CURRENT_ORDER_TARGET_ID GET returns current order target unit ID -
Par1 and Par2 - TA use this parameters to determine amount of build queue units, holding state time of unit being paralyzed etc.
140 CURRENT_ORDER_PAR GET returns value of current order Par1 or Par2
Parameters: ParType (1 or 2)
-
141 EDIT_CURRENT_ORDER_PAR GET sets value of current order Par1 or Par2
Parameters: ParType, NewValue
Recording
ShiftKey = 1 adds order to queue, 0 = queue is removed and new order has top priority
142 ORDER_SELF GET creates new order for caller unit
Parameters: OrderType, ShiftKey, Par1, Par2
Recording
143 ORDER_SELF_POS GET creates new order for caller unit, that require new position
Parameters: OrderType, ShiftKey, Packed: X and Z, Packed: Par1 and Par2
Recording
144 ORDER_UNIT_UNIT GET creates new order that involve two existing units
Parameters: OrderType, Unit1ID, Unit2ID, Packed: ShiftKey and Par1
Recording
145 ORDER_UNIT_POS GET creates new order. Similiar to CREATE_ORDER_SELF_POS but in context of different than caller unit
Parameters: OrderType, UnitID, Packed: X and Z, Packed: ShiftKey and Par1
Recording
146 ORDER_SELF_UNIT_POS GET creates new order. Similiar to CREATE_ORDER_SELF_POS but in context of two units - caller and UnitID.
Parameters: OrderType, UnitID, Packed: X and Z, Packed: ShiftKey and Par1
Recording
147 RESET_ORDER GET remove current unit order Recording
148 ADD_BUILD GET adds weapon or unit build to builder (caller unit) queue, or increases stockpile counter without creation of build order
Parameters: AddBuildType #1 - build weapon : AddBuildType, Amount
AddBuildType #2 - increase stockpile count : AddBuildType, Amount, WeaponIndex (1, 2 or 3)
AddBuildType #3 - queue unit to build : AddBuildType, Amount, UnitInfoID (use UNIT_TYPE_CRC_TO_ID to retrieve)
Recording

Types of orders

ID (OrderType) Internal Name Description
0   ready
1 Activate  
2 AirStrike air strike
3 AirToAir air attacks other air unit
4 AirToGround air unit attacks ground target
5 AirToGroundHover  
6 Attack_Chase main type of attack order
7 Attack_Kamikaze kamikaze attack that works also for kamikaze=0 units (except air)
8 Attack_NoMove  
9 AttackSpecial attack with tertiary weapon
10 AttackUType  
11 BeCarried state of being transported
12 BuildingBuild labs building
13 BuildWeapon  
14 Capture  
15 Cloak_Off  
16 Cloak_On  
17 Deactivate  
18 Follow_Ground guard order for ground units
19 GetBuilt state of being under construction
20 Ground_Pickup f.e. ARMTSHIP loading ground unit
21 Ground_Unload  
22 Guard_NoMove aka ready for ground mobile units
23 HelpBuild other builder joins build
24 MakeSelectable  
25 MobileBuild for mobile builders
26 Move_Ground  
27 Paralyze state of being paralyzed
28 Park  
29 Patrol  
30 QMove queued move (?)
31 QPatrol queued patrol (?)
32 Reclaim feature
33 ReclaimUnit  
34 RepairPatrol  
35 RepairUnit  
36 RepairUnitNoMove  
37 Resurrect  
38 SelfDestruct  
39 SelfDestructFG countdown
40 SelfRepair  
41 Standby  
42 Standby_Mine standby order for mines
43 Standing_FireOrder  
44 Standing_MoveOrder  
45 Stop  
46 Suppress 'Suppresing fire'
47 Teleport  
48 VTOL_Evade  
49 VTOL_Follow air unit guards
50 VTOL_GetRepaired 'Under repair'
51 VTOL_HelpBuild  
52 VTOL_LandIfCan 'Seeking to land'
53 VTOL_Landing  
54 VTOL_MobileBuild for construction aircrafts
55 VTOL_Move  
56 VTOL_Patrol  
57 VTOL_Pickup f.e. atlas -> ground unit
58 VTOL_Reclaim feature
59 VTOL_ReclaimUnit  
60 VTOL_RepairPatrol  
61 VTOL_RepairUnit  
62 VTOL_SeekAttack  
63 VTOL_SeekGuard  
64 VTOL_Standby  
65 VTOL_Unload  
66 Wait  
67 WaitForAttack  
68   no orders (TA will show it as Ready / Standby)