Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groupid = 800
- a10c = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] =
- {
- [1] = 6,
- [2] = 1,
- [3] = 1,
- ["name"] = "Ford11",
- }, -- end of ["callsign"]
- ["psi"] = 0,
- ["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
- ["onboard_num"] = "56",
- ["type"] = "A-10C",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "A-10C" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [1] =
- {
- ["CLSID"] = "{DB434044-F5D0-4F1F-9BA9-B73027E18DD3}",
- }, -- end of [1]
- [11] =
- {
- ["CLSID"] = "{DB434044-F5D0-4F1F-9BA9-B73027E18DD3}",
- }, -- end of [11]
- }, -- end of ["pylons"]
- ["fuel"] = 2515,
- ["flare"] = 120,
- ["ammo_type"] = 1,
- ["chaff"] = 240,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = groupid,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "A-10C" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- mig29s = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] = 113,
- ["psi"] = 0,
- ["livery_id"] = "1038th guards ctc, mary ab",
- ["onboard_num"] = "56",
- ["type"] = "MiG-29S",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Mig-29" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [1] =
- {
- ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
- }, -- end of [1]
- [2] =
- {
- ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
- }, -- end of [2]
- [7] =
- {
- ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
- }, -- end of [7]
- [6] =
- {
- ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
- }, -- end of [6]
- }, -- end of ["pylons"]
- ["fuel"] = "3500",
- ["flare"] = 30,
- ["chaff"] = 30,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = 487,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Mig-29S" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- f15c = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] =
- {
- [1] = 6,
- [2] = 1,
- [3] = 1,
- ["name"] = "Ford11",
- }, -- end of ["callsign"]
- ["psi"] = 0,
- ["livery_id"] = "19th Fighter SQN (AK)",
- ["onboard_num"] = "56",
- ["type"] = "F-15C",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "F-15C" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [1] =
- {
- ["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
- }, -- end of [1]
- [11] =
- {
- ["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
- }, -- end of [11]
- [9] =
- {
- ["CLSID"] = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}",
- }, -- end of [9]
- [3] =
- {
- ["CLSID"] = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}",
- }, -- end of [3]
- }, -- end of ["pylons"]
- ["fuel"] = "6103",
- ["flare"] = 60,
- ["chaff"] = 120,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = 485,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "F-15C" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- su27 = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] = 115,
- ["psi"] = 0,
- ["livery_id"] = "Air Force Standard",
- ["onboard_num"] = "56",
- ["type"] = "Su-27",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Su-27" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [1] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [1]
- [2] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [2]
- [9] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [9]
- [10] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [10]
- }, -- end of ["pylons"]
- ["fuel"] = "9400",
- ["flare"] = 96,
- ["chaff"] = 96,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = 490,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Su-27" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- su33 = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] = 116,
- ["psi"] = 0,
- ["livery_id"] = "279th kiap 1st squad navy",
- ["onboard_num"] = "56",
- ["type"] = "Su-33",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Su-33" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [11] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [11]
- [2] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [2]
- [12] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [12]
- [1] =
- {
- ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
- }, -- end of [1]
- }, -- end of ["pylons"]
- ["fuel"] = "9400",
- ["flare"] = 48,
- ["chaff"] = 48,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = 491,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Su-33" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- p51d = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] =
- {
- [1] = 6,
- [2] = 1,
- [3] = 1,
- ["name"] = "Ford11",
- }, -- end of ["callsign"]
- ["psi"] = 0,
- ["livery_id"] = "DCS_P51D_Big_Dick",
- ["onboard_num"] = "56",
- ["type"] = "P-51D",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "P-51D" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- }, -- end of ["pylons"]
- ["fuel"] = 366,
- ["flare"] = 0,
- ["chaff"] = 0,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["unitId"] = 484,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "P-51D" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["modulation"] = 0,
- ["frequency"] = 124,
- ),
- ka50 = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] = 118,
- ["psi"] = 0,
- ["livery_id"] = "Russia Demo #024",
- ["onboard_num"] = "57",
- ["type"] = "Ka-50",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Ka-50" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- }, -- end of ["pylons"]
- ["fuel"] = "1450",
- ["flare"] = 128,
- ["chaff"] = 0,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 41.666666666667,
- ["unitId"] = 498,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Ka-50" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["frequency"] = 124,
- ),
- huey = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["heading"] = 0,
- ["callsign"] =
- {
- [1] = 7,
- [2] = 1,
- [3] = 1,
- ["name"] = "Chevy11",
- }, -- end of ["callsign"]
- ["psi"] = 0,
- ["livery_id"] = "Army Standard",
- ["onboard_num"] = "57",
- ["type"] = "UH-1H",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Huey" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- [1] =
- {
- ["CLSID"] = "M134_L",
- }, -- end of [1]
- [4] =
- {
- ["CLSID"] = "M134_R",
- }, -- end of [4]
- }, -- end of ["pylons"]
- ["fuel"] = "631",
- ["flare"] = 0,
- ["chaff"] = 0,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 41.666666666667,
- ["unitId"] = 497,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "Huey" .. groupid,
- ["communication"] = true,
- ["start_time"] = 0,
- ["frequency"] = 124,
- ),
- fw190d9 = (
- ["groupId"] = groupid,
- ["hidden"] = false,
- ["units"] =
- {
- [1] =
- {
- ["alt"] = 449,
- ["type"] = "FW-190D9",
- ["unitId"] = 499,
- ["psi"] = 0,
- ["alt_type"] = "BARO",
- ["skill"] = "Random",
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "FW-190D9" .. groupid,
- ["payload"] =
- {
- ["pylons"] =
- {
- }, -- end of ["pylons"]
- ["fuel"] = 277,
- ["flare"] = 0,
- ["chaff"] = 0,
- ["gun"] = 100,
- }, -- end of ["payload"]
- ["speed"] = 138.88888888889,
- ["heading"] = 0,
- ["callsign"] = 117,
- ["onboard_num"] = "56",
- }, -- end of [1]
- }, -- end of ["units"]
- ["y"] = 895424.57142858,
- ["x"] = -317838.57142857,
- ["name"] = "FW-190D9" .. groupid,
- ["communication"] = true,
- ["start_time"] = 213,
- ["modulation"] = 0,
- ["frequency"] = 124,
- )
- function UnitRadioCommand(arg)
- if arg == f15c or p51d then
- coalition.addGroup(country.id.USA, Group.Category.AIRPLANE, arg)
- groupid = groupid + 1
- trigger.action.outTextForGroup(GroupId groupId, string text, Time delay)
- return
- end
- if arg == su25t or su27 or su33 or mig29s or fw190d9 then
- coalition.addGroup(country.id.RUSSIA, Group.Category.AIRPLANE, arg)
- groupid = groupid + 1
- return
- end
- if arg == ka50 then
- coalition.addGroup(country.id.RUSSIA, Group.Category.HELICOPTER, arg)
- groupid = groupid + 1
- return
- end
- if arg == huey then
- coalition.addGroup(country.id.USA, Group.Category.HELICOPTER, arg)
- groupid = groupid + 1
- return
- end
- local playerName = unit:getPlayerName()
- trigger.action.outTextForGroup(gid,PlayerName .. " generated " .. arg, 15)
- end
- function AddRadioCommand(unitName)
- gid = group:getID()
- missionCommands.addCommandForGroup(gid, "F-15C", nil, UnitRadioCommand, f15c)
- missionCommands.addCommandForGroup(gid, "Su-25T", nil, UnitRadioCommand, su25t)
- missionCommands.addCommandForGroup(gid, "Su-27", nil, UnitRadioCommand, su27)
- missionCommands.addCommandForGroup(gid, "Su-33", nil, UnitRadioCommand, su33)
- missionCommands.addCommandForGroup(gid, "Mig-29S", nil, UnitRadioCommand, mig29s)
- missionCommands.addCommandForGroup(gid, "A-10C", nil, UnitRadioCommand, a10c)
- missionCommands.addCommandForGroup(gid, "P-51D", nil, UnitRadioCommand, p51d)
- missionCommands.addCommandForGroup(gid, "FW-190D9", nil, UnitRadioCommand, fw190d9)
- missionCommands.addCommandForGroup(gid, "Huey", nil, UnitRadioCommand, huey)
- missionCommands.addCommandForGroup(gid, "Ka-50", nil, UnitRadioCommand, ka50)
- end
- function AddRadioCommands(arg, time)
- AddRadioCommand("GEN - F-15C")
- AddRadioCommand("GEN - Su-25T")
- AddRadioCommand("GEN - Su-27")
- AddRadioCommand("GEN - Su-33")
- AddRadioCommand("GEN - Mig-29S")
- AddRadioCommand("GEN - A-10C")
- AddRadioCommand("GEN - P-51D")
- AddRadioCommand("GEN - Huey")
- AddRadioCommand("GEN - Ka-50")
- return time + 5
- end
Advertisement
Add Comment
Please, Sign In to add comment