Danguard Posted August 25, 2022 Share Posted August 25, 2022 Hello, i don't know if this is the correct location on the forum but in a code like this: AMPCD stuff, device 37 PB 18 - 3028 PB 2 - 3012 PB 10 - 3020 PB 12 - 3022 PB 5 - 3015 PB 19 - 3029 where can i find this codes for the OSB button of a plane? Someone told me there are in a lua file in cockpit folder but honstly i didn't find. Thx in advance D. [sIGPIC]http://img600.imageshack.us/img600/6003/danguard.jpg[/sIGPIC] Link to comment Share on other sites More sharing options...
toutenglisse Posted August 27, 2022 Share Posted August 27, 2022 (edited) On 8/25/2022 at 3:15 PM, Danguard said: ...where can i find this codes for the OSB button of a plane?... Hi, you can find in ...DCS World OpenBeta\Mods\aircraft\FA-18C\Cockpit\Scripts\devices.lua the device number for AMPCD at line 50 : devices["AMPCD"] = counter()--37 -- Advanced Multipurpose Color Display - ??? and in ...DCS World OpenBeta\Mods\aircraft\FA-18C\Cockpit\Scripts\command_defs.lua the numbers for AMPCD pushbuttons at line 501 : -- MDI/AMPCD Pushbuttons count = start_command + 10 -- Pushbuttons are numbered clockwise from the lowest button at the left side for PB_num = 1, 20 do local PB_command = counter() MDI_commands["MDI_PB_"..PB_num] = PB_command AMPCD_commands["AMPCD_PB_"..PB_num] = PB_command end That you can read like this : start_command is 3000 (written at the top of script) so count is 3010 First pushbutton (lowest from left side) is : AMPCD_commands["AMPCD_PB_1"] = 3011 (PB_command = counter() = count + 1 (that is also written at the top of script) = 3011) Other 19 pushbuttons clockwise from the 1st one are 3012, 3013, etc... Edited August 27, 2022 by toutenglisse 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now