Jump to content

Recommended Posts

Posted (edited)

Exactly how do I enable EPLRS on the KC-135 with lua scripting? It's not possible straight from the bat in the mission editor. I don't know if it's a "bug", but I believe the KC-135 should be able to link up with the other planes through L16 irl.

On the picture you'll see the script I've been trying to use, and I suspect I'm doing this COMPLETELY wrong 😛

 

 

EPLRS = { 
  id = 'EPLRS', 
  params = { 
    value = boolean, 
    groupId = number, 
  } 
}

 

groupId? The closest thing I could come up with was UNIT ID. Is that correct?
Source : https://wiki.hoggitworld.com/view/DCS_command_eplrs

eplrs.jpg

eplrs2.jpg

Edited by d0ppler

A-10C, AV-8B, Ka-50, F-14B, F-16C, F-5E, F/A-18C, L-39, Mi-8, MiG-21, MiG-29, SA34, Spitfire, Su-27, Su-33, UH-1H

Posted

Seems groupId is optional and only used on ground groups. You should only use value

EPLRS = { 
  id = 'EPLRS', 
  params = { 
    value = 1
  } 
}
  • Like 1

- "It's better to reign in hell than to serve in Heaven"

 

Modules: A-4E-C Skyhawk, A-10C II Tank Killer, AJS37 Viggen, AV-8B Harrier, F-14B Tomcat, F-15C Eagle, F-16C Viper, F/A-18C Hornet, MIG-21 Fishbed, MIG-29, SU-27, SU-33

Maps: Caucasus, Nevada, Persian Gulf, Syria, Supercarrier

Rig: i7 4790 / Nvidia GTX 1070 Strix / 16GB RAM DDR3 1600 MHz / 256 GB SSD / Windows 10

Setup: ThrustMaster TWCS Throttle, Titanwolf "Vulture" Stick, DelanClip PRO, Home-made universal Cockpit panel

Posted (edited)

YAY! I got it to work! Just removed the groupID parameter!

EPLRS = { 
  id = 'EPLRS', 
  params = { 
    value = 1
  } 
}

eplrs3.JPG

6 minutes ago, Pantera93 said:

Seems groupId is optional and only used on ground groups. You should only use value

EPLRS = { 
  id = 'EPLRS', 
  params = { 
    value = 1
  } 
}

You got me with a couple of minutes🙂 Thanks anyway! 😄

Edited by d0ppler

A-10C, AV-8B, Ka-50, F-14B, F-16C, F-5E, F/A-18C, L-39, Mi-8, MiG-21, MiG-29, SA34, Spitfire, Su-27, Su-33, UH-1H

Posted (edited)
On 2/18/2022 at 9:17 AM, d0ppler said:

Exactly how do I enable EPLRS on the KC-135 with lua scripting?...

From my experience/understanding, It is not possible, as this unit doesn't have datalink/link 16 (look attributes for kc135 here DCS-miscScripts/KC-135.lua at master · mrSkortch/DCS-miscScripts · GitHub there is no datalink, while for E-2C(D) here : DCS-miscScripts/E-2C.lua at master · mrSkortch/DCS-miscScripts · GitHub there is datalink).

The script you use is incomplete, that's why I found curious that it could work. The right code, for a plane with groupName 'Avion-2' and datalink/link16 as attribute, is :

EPLRS = { 
  id = 'EPLRS', 
  params = { 
    value = 1
  } 
}
Group.getByName('Avion-2'):getController():setCommand(EPLRS)

Here a .miz example (Player F16 on ground in caucasus, to see allied on HSD. E-2C(D) hawkeye with default 'EPLRS on' erased, and activated via script. It appears after 20 sec on HSD, but if you "comment" / -- last line of script (Group.get....) like in picture, it will not appear).

On picture of your latest post the tanker appears on HSD because there is an AWACS (or at least on other link16 unit that share tanker). Remove the AWACS and the tanker won't appear.

commented-script-line.jpg

test-script-activate-EPLRS.miz

Edited by toutenglisse
  • Recently Browsing   0 members

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