Frag Posted September 30, 2018 Posted September 30, 2018 (edited) Hi guys, I would really need a pointer here, just an idea of which class to look for. Let say, in a L-39C, that I would like to know what is the current status (on,off) of the main battery switch. What can I use? EDIT: I just saw that you can use, in the editor itself "X COCKPIT ARGUMENT IN RANGE" to know the state of a switch, where you pass a number in parameters to identify the switch you are looking for. Two questions: 1. Could we have access to this thru MOOSE? I prefer scripting over editor commands. 2. Where can I find the full list of all possible arguments for the L-39 ? 3. I also noticed that X: COCKPIT HIGHLIGHT ELEMENT is another value. Example: For the battery, the highlight parameter is 1 .... however to check the value of the battery state (on or off) it is 141. So where can I find the listing of those values? Thanks! Frag Edited September 30, 2018 by Frag
Grimes Posted September 30, 2018 Posted September 30, 2018 1. Not in the mission scripting environment unfortunately. You are limited to using the triggers for that. In the export environment there is a way to get switch status and even set switches. This is how stuff like simple radio knows what radio frequency you are tuned to. 2/3. I'm not entire certain but you might be able to load DCS World\Mods\aircraft\L-39C\Cockpit\command_defs.lua to derive which argument goes to which values. Similarly the clickabledata.lua file may show you the values to check for each item. 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
Frag Posted October 1, 2018 Author Posted October 1, 2018 1. Not in the mission scripting environment unfortunately. You are limited to using the triggers for that. In the export environment there is a way to get switch status and even set switches. This is how stuff like simple radio knows what radio frequency you are tuned to. 2/3. I'm not entire certain but you might be able to load DCS World\Mods\aircraft\L-39C\Cockpit\command_defs.lua to derive which argument goes to which values. Similarly the clickabledata.lua file may show you the values to check for each item. You are the man Grimes!!!! I think I should get everything I need from clickabledata.lua. I took a switch I was aware of "CONVERTER_1" and found it in there. They seem to be all listed. Thanks man!!!! Really ...really appreciated. This forum is priceless.
Recommended Posts