How do I craeate new preset formation?

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.

  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

What are the tablet controls?

Tablet controls are as follows:...

How do I add quiz question?

All questions can be found in wos/ufs/fb/questions/ When creating your own questions you can...

How can I reward my players for staying in formation?

Rewarding players in formation. You can choose to reward players at set intervals for being in...