DCS enum formation

From DCS World Wiki - Hoggitworld.com

Scripting Root

Enumerator: Formation Added with: 1.2.0
Description: Formations are a set of numbers to define different formations aircraft and helicopter groups may use. Like callsigns the formation values are another set of constant values that are not directly accessible by the scripting engine.
Uses: For assigning a formation via route or setOption for a group of aircraft or helicopters.
Format: Formations are defined in two different formats of old and new. The old format is how the data is stored in the mission file. When set via the scripting function Controller.setOption() the old format can only be used to do a basic and default version of a given formation.

The new format is also stored within a miz file but its values show no apparent pattern for the majority of the data.

Different formation types have different values.

constants: OLD Formation Type

Aircraft

  LINE_ABREAST    = 1, 
  TRAIL           = 2, 
  WEDGE           = 3, 
  ECHELON_RIGHT   = 4, 
  ECHELON_LEFT    = 5, 
  FINGER_FOUR     = 6, 
  SPREAD_FOUR     = 7, 
  WW2_BOMBER_ELEMENT = 12,
  WW2_BOMBER_ELEMENT_HEIGHT = 13,
  WW2_FIGHTER_VIC = 14,

Helicopters

  HEL_WEDGE       = 8, 
  HEL_ECHELON     = 9, 
  HEL_FRONT       = 10, 
  HEL_COLUMN      = 11, 
  

NEW Formation Type

Fixed Wing

Formations Line Abreast Trail Wedge Echelon Right Echelon Left Finger Four Spread Bomber Element Bomber Element Height Fighter Vic
Close 65537 131073 196609 262145 327681 393217 458753 786433 851968 917505
Open 65538 131074 196610 262146 327682 393218 458754 786434 nil 917506
Group Close 65539 131075 196611 262147 327683 393219 458755 786435 nil nil


Helicopter

Formations Column Wedge Front Right Front Left Echelon Right Echelon Left
70 720896 8 nil nil 589825 590081
300 nil nil 655361 655617 589826 590082
600 nil nil 655362 655618 589827 590083
notes: