Jump to content

Recommended Posts

Posted

I'm setting the altitude to 0 but when the table gets made this comes out randomly at a little less or a little more than 0 - I don't know if that's the problem. I'm not setting speed to match the carrier but I am linking it to the correct carrier.

Please, anyone help?

 

2023-03-07 17:10:20.153 INFO    TLO (Main): {
  ['taskSelected'] = true,
  ['modulation'] = 0,
  ['groupId'] = 1000008,
  ['tasks'] = {

  },
  ['frequency'] = 309,
  ['hidden'] = false,
  ['units'] = {
    [1] = {
      ['alt'] = 0.043982401810354,
      ['type'] = 'E-2C',
      ['alt_type'] = 'BARO',
      ['livery_id'] = 'vaw-124_161781 - used',
      ['onboard_num'] = 999,
      ['name'] = 'DARKSTAR91',
      ['payload'] = {
        ['pylons'] = {

        },
        ['fuel'] = '5624',
        ['flare'] = 60,
        ['chaff'] = 120,
        ['gun'] = 100
      },
      ['speed'] = 0,
      ['unitId'] = '1000009',
      ['callsign'] = {
        [1] = 5,
        [2] = 9,
        ['name'] = 'DARKSTAR91',
        [3] = 1
      }
    }
  },
  ['y'] = -365648.4741437,
  ['radioSet'] = true,
  ['name'] = 'EMERGENCY AWACS',
  ['communication'] = true,
  ['x'] = 76912.977130156,
  ['route'] = {
    ['points'] = {
      [1] = {
        ['y'] = -365648.4741437,
        ['x'] = 76912.977130156,
        ['action'] = 'From Parking Area',
        ['alt_type'] = 'BARO',
        ['linkUnit'] = '5',
        ['type'] = 'TakeOffParking',
        ['task'] = {
          ['id'] = 'ComboTask',
          ['params'] = {
            ['tasks'] = {
              [1] = {
                ['enabled'] = true,
                ['id'] = 'WrappedAction',
                ['auto'] = true,
                ['params'] = {
                  ['action'] = {
                    ['id'] = 'EPLRS',
                    ['params'] = {
                      ['value'] = true
                    }
                  }
                }
              },
              [2] = {
                ['enabled'] = true,
                ['id'] = 'AWACS',
                ['auto'] = true,
                ['params'] = {

                }
              }
            }
          }
        },
        ['alt'] = 0
      },
      [2] = {
        ['alt'] = 12801.599980542,
        ['type'] = 'Turning Point',
        ['action'] = 'Turning Point',
        ['alt_type'] = 'BARO',
        ['speed'] = 231.50000029066,
        ['x'] = 162895.04596427,
        ['task'] = {
          ['id'] = 'ComboTask',
          ['params'] = {
            ['tasks'] = {
              [1] = {
                ['enabled'] = true,
                ['id'] = 'Orbit',
                ['auto'] = false,
                ['params'] = {
                  ['altitude'] = 12801.599980542,
                  ['pattern'] = 'Circle',
                  ['speed'] = 231.50000029066,
                  ['altitudeEdited'] = true,
                  ['speedEdited'] = true
                }
              }
            }
          }
        },
        ['y'] = -400026.42985671
      }
    }
  },
  ['task'] = 'AWACS',
  ['uncontrolled'] = false
}

 

Posted (edited)

WP1 of the route is missing helipadId which is the unit Id of the unit it is spawning on. Applies to aircraft spawning on ships or static objects. 

["helipadId"] = 1,

Would have to double check if it matters if it is a number or a string value. At least as saved in the editor both it and linkUnit are numbers not strings. 

Edited by Grimes

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
46 minutes ago, Grimes said:

WP1 of the route is missing helipadId which is the unit Id of the unit it is spawning on. Applies to aircraft spawning on ships or static objects. 

["helipadId"] = 1,

Would have to double check if it matters if it is a number or a string value. At least as saved in the editor both it and linkUnit are numbers not strings. 

 

Wow... I'd never have caught that. Thanks so much @Grimes

After being utterly shocked by that field name and how it would relate to a non-helo on a non helo parking spot, I searched hoggit for that 'helipadid' and found this - which I never picked up on...

Hopefully this will help someone else...

DCS task mission - DCS World Wiki - Hoggitworld.com
Waypoint Type Specific Parameters The following are used with take-off and landing waypoint types.

helipadId: Used when the waypoint is associated with the a static object or a unit placed in the mission editor. Needs to be the unitId associated with the object.

linkUnit: Used when the waypoint is associated with the a static object or a unit placed in the mission editor. Value is identical to helipadId, but it is required.

 

  • Thanks 1
  • Recently Browsing   0 members

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