482
edits
Line 80: | Line 80: | ||
The following code, which you can place in your keyboard.xml file or (if you are an aircraft designer) in your aircraft's -set.xml file, triggers both of those locations and works with almost all FG aircraft: | The following code, which you can place in your keyboard.xml file or (if you are an aircraft designer) in your aircraft's -set.xml file, triggers both of those locations and works with almost all FG aircraft: | ||
<!-- Fire gun --> | |||
<!-- We do both triggers just to be safe --> | |||
<key n="101"> | |||
<name>e</name> | |||
<desc>Gun Trigger</desc> | |||
<binding> | |||
<command>property-assign</command> | |||
<property>ai/submodels/trigger</property> | |||
<value>true</value> | |||
</binding> | |||
<binding> | |||
<command>property-assign</command> | |||
<property>controls/armament/trigger</property> | |||
<value>true</value> | |||
</binding> | |||
<mod-up> | |||
<binding> | |||
<command>property-assign</command> | |||
<property>ai/submodels/trigger</property> | |||
<value>false</value> | |||
</binding> | |||
<binding> | |||
<command>property-assign</command> | |||
<property>controls/armament/trigger</property> | |||
<value>false</value> | |||
</binding> | |||
</mod-up> | |||
</key> |
edits