Formation

CreateFormation(string name)
Multiple
name: Name of the formation. Formations should have unique names.
A formation consists of a series of slots which are filled in order to make up a formation. If there are more units then there are slots those units will not vbe included in the formation.
Slot()
Multiple
An individual slot in a formation.
Orientation(float angle)
Required
angle: Angle this unit faces with respect to the front of the formation. This is a relative compass angle.
Polar(float angle, float distance)
Required if Cartesian not specified
angle: Angle from the front of the formation to this slot. This is a relative compass angle.
distance: Distance from the origin of the formation to this slot.
Cartesian(float x, float z)
Required if Polar not specified
x, z: Offset to this slot.