Jump to content

Recommended Posts

Posted

Greetings!

 

I'm trying to enable EPLRS on a ground unit via scripting, but I can't get it to start.

 

I'm feel that this should work:

 

setCommand(groupName="group1", EPLRS={id='EPLRS',params={value=true,groupId=1,}})

 

But what I feel should work and actually does work are two different things.

 

Any input would be much appreciated.

 

Cheers!

Posted

I guess you made sure the group does have a Unit in spot one that supports EPLRS?

E.g. is it a Humvee, Bradley or Abrams or the like?

Shagrat

 

- Flying Sims since 1984 -:pilotfly:

Win 11 | Ryzen 9 7900X3D  | 64GB | GeForce RTX 4090 - Asus VG34VQL1B  | TrackIR5 | Simshaker & Jetseat | VPForce Rhino Base & VIRPIL T50 CM2 Stick on 200mm curved extension | VIRPIL T50 CM2 Throttle | VPC Rotor TCS Plus/Apache64 Grip | MFG Crosswind Rudder Pedals | WW Top Gun MIP | a hand made AHCP | 2x Elgato StreamDeck (Buttons galore)

Posted

Your syntax is close, but not quite. The following should do the trick.

 

Group.getByName('group1'):getController():setCommand({id = 'EPLRS', params = {value = true, groupId = 1,}})

  • Thanks 1

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 (edited)

Thanks!

 

However, I can't seem to get this to work. I can't figure out what I'm doing wrong.

 

One HMMWV named group1 with EPLRS off placed in mission editor.

Three seconds in, do script "Group.getByName('group1'):getController():setComma nd({id = 'EPLRS', params = {value = true, groupId = 1,}})"

No dice.

 

Edit: I got it! "setCommand" not "setComma nd"

Edited by EasyEB
  • Recently Browsing   0 members

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