All Preset formations can be found in wos/ufs/fb/formations/ When creating your own formation you can either create a new lua file for it or use the already existing one. To Create the formation we need to call the following function wOS.UFS:RegisterFormation() Here is an example:
wOS.UFS:RegisterFormation({
Name = "Loose Wedge",
Formation = {
{ 2, },
{ 1, 0, 1, },
{ 1, 0, 0, 1,},
{ 1, 0, 0, 0, 1 }
},
Fixed = false,
})
Name is obviously the name of the formation, Fixed prevents the formation from rotating as the player moves around The Formation attribute is a table your formation goes in here and can be as big or small as you want it to be (Bigger formations have heavier rendering requirements). The numbers designate the type of position. 2 is the primary position (RED). This the position that the formation will form around. 1 designates a generic position. 0 designates a empty space. You only need to use a 0 between position. So for example in this position:
wOS.UFS:RegisterFormation({
Name = "Wide Formation",
Formation = {
{ 0, 1, 0, 2, 0, 1, 0 }
},
Fixed = false,
})
The left most and right most 0 in unnecessary.