Jump to content

Troop Pickup and drop off help?


Irishlad200000

Recommended Posts

Hi

 

I have tirelessly searched for an up to date way to sort this in my missions!

 

I’m looking the correct trigger and radio menu setup for simple pickup and drop off in a mission.

 

I want to complete some fun search and rescue missions under fire and would like to find out the easiest and most realistic way to do this?

 

Have mastered most of the more complex fixed wing scenarios, however always end up making a mess with heli pickup!

 

All advice would be much appreciated.

 

 

Sent from my iPhone using Tapatalk Pro

Link to comment
Share on other sites

I usually spawn or destroy the unit. This needs a bit of LUA scripting. I am a programmer by profession so it's a piece of cake for me but for many people it could be really tough thing to get into. If you are willing to do scripting, here is what I do:

 

I create a unit in editor, save the mission. The .miz file is a zip with some directory structure and LUA scripts inside. So you can open it with WinZip or Total Commander. In directory l10n (= shorthand for "localization") and another directory DEFAULT there is a file "dictionary". For your unit name find "DictKey_GroupName..." This is the key you can find your unit under. This applies for DCS 2.5. Older versions didn't use this mechanism for translation.

 

In miz root / "missiom" file, you can find the unit data for the DictKey_GroupName you found earlier. These data can be used for spawning a unit.

 

You can then remove your unit from game using trigger - do script:

Group.getByName(env.getValueDictByKey('dict_key_for_the_group')):destroy()

 

And create it again using something like this, again trigger - do script:

 

local unit_data =  {
                               ["visible"] = false,
                               ["lateActivation"] = false,
                               ["tasks"] = 
                               {
                               }, -- end of ["tasks"]
                               ["uncontrollable"] = false,
                               ["task"] = "Ground Nothing",
                               ["taskSelected"] = true,
                               ["route"] = 
                               {
                                   ["spans"] = 
                                   {
                                   }, -- end of ["spans"]
                                   ["points"] = 
                                   {
                                       [1] = 
                                       {
                                           ["alt"] = 904,
                                           ["type"] = "Turning Point",
                                           ["ETA"] = 0,
                                           ["alt_type"] = "BARO",
                                           ["formation_template"] = "",
                                           ["y"] = 755967.63342658,
                                           ["x"] = -231111.18019156,
                                           ["name"] = "DictKey_WptName_32",
                                           ["ETA_locked"] = true,
                                           ["speed"] = 5.5555555555556,
                                           ["action"] = "Off Road",
                                           ["task"] = 
                                           {
                                               ["id"] = "ComboTask",
                                               ["params"] = 
                                               {
                                                   ["tasks"] = 
                                                   {
                                                   }, -- end of ["tasks"]
                                               }, -- end of ["params"]
                                           }, -- end of ["task"]
                                           ["speed_locked"] = true,
                                       }, -- end of [1]
                                   }, -- end of ["points"]
                                   ["routeRelativeTOT"] = false,
                               }, -- end of ["route"]
                               ["groupId"] = 6,
                               ["hidden"] = false,
                               ["units"] = 
                               {
                                   [1] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 11,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755967.63342658,
                                       ["x"] = -231111.18019156,
                                       ["name"] = "DictKey_UnitName_31",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [1]
                                   [2] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 12,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755958.59618958,
                                       ["x"] = -231137.28776512,
                                       ["name"] = "DictKey_UnitName_33",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [2]
                                   [3] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 13,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755952.57136491,
                                       ["x"] = -231162.39120123,
                                       ["name"] = "DictKey_UnitName_34",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [3]
                                   [4] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 14,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755936.5051658,
                                       ["x"] = -231185.48636245,
                                       ["name"] = "DictKey_UnitName_35",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [4]
                                   [5] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 15,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755959.60032702,
                                       ["x"] = -231199.54428667,
                                       ["name"] = "DictKey_UnitName_36",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [5]
                                   [6] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 16,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755920.43896669,
                                       ["x"] = -231155.36223912,
                                       ["name"] = "DictKey_UnitName_37",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [6]
                                   [7] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 17,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755904.37276758,
                                       ["x"] = -231191.51118712,
                                       ["name"] = "DictKey_UnitName_38",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [7]
                                   [8] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 18,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755937.50930324,
                                       ["x"] = -231234.68909723,
                                       ["name"] = "DictKey_UnitName_39",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [8]
                                   [9] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 19,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755892.32311824,
                                       ["x"] = -231214.60634834,
                                       ["name"] = "DictKey_UnitName_40",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [9]
                                   [10] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 20,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755908.38931735,
                                       ["x"] = -231244.73047168,
                                       ["name"] = "DictKey_UnitName_41",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [10]
                                   [11] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 21,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755915.41827947,
                                       ["x"] = -231274.85459501,
                                       ["name"] = "DictKey_UnitName_42",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [11]
                                   [12] = 
                                   {
                                       ["type"] = "Soldier M4",
                                       ["transportable"] = 
                                       {
                                           ["randomTransportable"] = false,
                                       }, -- end of ["transportable"]
                                       ["unitId"] = 22,
                                       ["skill"] = "Excellent",
                                       ["y"] = 755881.27760635,
                                       ["x"] = -231251.75943379,
                                       ["name"] = "DictKey_UnitName_43",
                                       ["heading"] = 0.95993108859688,
                                       ["playerCanDrive"] = false,
                                   }, -- end of [12]
                               }, -- end of ["units"]
                               ["y"] = 755967.63342658,
                               ["x"] = -231111.18019156,
                               ["name"] = "DictKey_GroupName_30",
                               ["start_time"] = 0,
                           }

coalition.addGroup(country.id.USA, Group.Category.GROUND, unit_data)

 

 

You don't have to care about "groupId" parameter - if there is a collision of unitIds, a new is automagically generated (they need to be unique). Name of the unit is important and here you should use the DictKey. And of course, fix the location/heading parameters (x, y).

 

Technically this is not a transport which never really worked for me predictably. You completely remove the unit and create a new one.

  • Like 1
Link to comment
Share on other sites

Thanks, I'll probably watch the whole series :) . In this video you deactivate the unit to "embark" it to an IFV. Is there a way to diesmbark it without using a script? This is one of the cases why I use the aforementioned technique.

 

I am in a process of creating a mission where you have to protect a couple of IFVs from ambushes (using a Gazelle L), lead it to some designated place where the troops would be disembarked and capture a bridge. Deactivated or late activated units are still visible on the F10 map and making them invisible on map doesn't work for this mission as well because you need to order them to fight/capture the bridge using Combined Arms.

Link to comment
Share on other sites

Great to see some like minded mission makers!

 

I served in a Air Assault Unit in the British Army and did many Ops. I have lots of ideas, however it takes massive effort and skill to put on to the DCS canvas! Just not enough hours in the day to do what I want!!

 

 

Sent from my iPhone using Tapatalk Pro

Link to comment
Share on other sites

  • Recently Browsing   0 members

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