Jump to content

Dynamic Addition of Custom Formations


Recommended Posts

Posted

Hi all!

whilst we can use set formations in a waypoint via e.g.

...
["formation_template"]="Ammo Truck Circle"
...

the actual references seem only to exists in the

mission 

file in the miz. The setup is relatively simple

    ["customFormations"] = 
    {
        [1] = 
        {
            ["name"] = "Ammo Truck Circle",
            ["positions"] = 
            {
                [1] = 
                {
                    ["y"] = 0,
                    ["x"] = 0,
                    ["heading"] = 4.4134813168853,
                }, -- end of [1]
                [2] = 
                {
                    ["y"] = 208.17113065999,
                    ["x"] = -24.903908270004,
                    ["heading"] = 4.4134813168853,
                }, -- end of [2]
                [3] = 
                {
                    ["y"] = -74.07316305011,
                    ["x"] = 173.05023437999,
                    ["heading"] = 4.4134813168853,
                }, -- end of [3]
                [4] = 
                {
                    ["y"] = 321.19656048995,
                    ["x"] = 153.25482011,
                    ["heading"] = 4.4134813168853,
                }, -- end of [4]
                [5] = 
                {
                    ["y"] = 27.458155269967,
                    ["x"] = 330.13642498999,
                    ["heading"] = 4.4134813168853,
                }, -- end of [5]
                [6] = 
                {
                    ["y"] = 223.4966126699,
                    ["x"] = 327.58217799,
                    ["heading"] = 4.4134813168853,
                }, -- end of [6]
            }, -- end of ["positions"]
        }, -- end of [1]
    }, -- end of ["customFormations"]

 

Request Please enable these to be dynamically added and/or altered via the API with LUA scripting. Would be very handy for e.g. a scripted dispersal of troops etc. Thanks

Posted

Since I asked about this during a Moose conversation, I agree.
We are currently, as far as I can tell, unable to make a convoy of any number or type of ground unit, stop and form up into a custom formation (like a deployed SA6 site). And the reason we cannot, is that the templates come from custom locations like the local PC or the base game and are added to the mission table as required.

If we had this you could stop a convoy and make it go into a defensive custom formation. Then move off again - repeat.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...