Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.77 KB

78-rallypoint.md

File metadata and controls

74 lines (55 loc) · 1.77 KB

Rally Point

Sets gather points for units. Gather points can be set on coordinates or objects and resources that should be attacked after unloading or creation (e.g. deer, castle).

Definition

def RallyPoint
  int8 :action_identifier
  int8 :selection_count
  int16 :zero
  int32 :target_id
  int32 :target_unit_id
  float :x_coord
  float :y_coord
  array :selected_ids,
    type => :int32,
    length => :selection_count
end

Description

:action_identifier
Always has the value 0x78.

:selection_count
The number of selected buildings.

:zero
The two bytes following :selection_count are always zero.

:target_id
If the rally point is set on another object, this has the ID of this object. Otherwise has the value 0xFFFFFFFF.

:target_unit_id
The UnitID of the target. Will be ff ff 00 00 if no target is selected.

:x_coord
The x-coordinate of the rally point.

:y_coord
The y-coordinate of the rally point.

:selected_ids
The IDs of the buildings for which the rally point will be set.

Examples

Set rally point in the open.

78 01 00 00 ff ff ff ff ff ff 00 00 ab b2 17 43 00 20 49 42 43 17 00 00

78 — action_identifier
01 — selection_count
00 00 — zero
ff ff ff ff — target_id
ff ff 00 00 — target_unit_id
ab b2 17 43 — x_coord
00 20 49 42 — y_coord
43 17 00 00 — selected_id

Set rally point on object.

78 01 00 00 83 17 00 00 66 00 00 00 00 80 29 43 00 00 1a 42 43 17 00 00

78 — action_identifier
01 — selection_count
00 00 — zero
83 17 00 00 — target_id
66 00 00 00 — target_unit_id
00 80 29 43 — x_coord
00 00 1a 42 — y_coord
43 17 00 00 — selected_id