-
-
Notifications
You must be signed in to change notification settings - Fork 64
P51‐D Generator Disconnect Switch
The P-51D manual states that the disconnect switch is the left switch on the upper row.
- Now start ModelViewer2.exe.
- Open
Cockpit_P-51D-25-NA.edm
When you place your cursor on the connector box for the generator you will see an argument_id
pop up. In this case it is pnt_102
.
You can now go to that argument in the Args
window of model viewer and with the slider you can see that the control moves.
Now we have verified that 102
is the argument_id
for the control.
Now we need the device category ID which we will find from several files.
Searching for ptn_102
or 102
in the DCS World\Mods\aircraft\P-51D\Cockpit\Scripts\
shows this entry in clickabledata.lua
.
There the device category is listed. We need the actual ID which is a number. So opening devices.lua
we find that this.
The device category ID is 14
.
Now we need the command ID
for the control. Going back to clickabledata.lua
we have this piece of information.
It is Button3 we are interested in. We find information about that in the command_defs.lua
file.
You can see that commands starts at 3000
, so for each button in the list you add 1
. We can deduce that the command ID
is 3003
.
To summarize :
-
argument_id
is102
-
device category ID
is14
-
command ID
is3003
Now you have enough information to create the control in DCS-BIOS.
What you need to decide on now is what type of control it will be in DCS-BIOS. There are a lot of them. This one was simple though. defineToggleSwitch
makes the most sense.
-
GEN
, this is the unique name for the DCS-BIOS control, name your controls so it is easy to understand what it is. -
Right Switch Panel
is the category, the rest of the switches on the same panel would use this category too. -
Generator
, description. Here you can add a little more context if necessary.