EasyEB Posted December 18, 2016 Posted December 18, 2016 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!
shagrat Posted December 18, 2016 Posted December 18, 2016 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 - 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)
Grimes Posted December 19, 2016 Posted December 19, 2016 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,}}) 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
EasyEB Posted December 19, 2016 Author Posted December 19, 2016 (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 December 19, 2016 by EasyEB
Recommended Posts