482
edits
(→Setup) |
|||
Line 26: | Line 26: | ||
== Adding guns and bullet effects to your Airplane == | == Adding guns and bullet effects to your Airplane == | ||
Once you have a key or button binding defined to active the trigger, you'll then need to add the needed [[AI_Systems#Submodels]] configuration file to your airplane's root directory, and ensure the file is activated in your *-set.xml file. The choice of tracer, smoke and impact visual models is up to you. You may also add a sound effect to your sound configuration file that activates with the trigger. | Once you have a key or button binding defined to active the trigger, you'll then need to add the needed [[AI_Systems#Submodels]] configuration file to your airplane's root directory, and ensure the file is activated in your *-set.xml file. The choice of tracer, smoke and impact visual models is up to you. You may also add a sound effect to your sound configuration file that activates with the trigger. | ||
The standard trigger location for FlightGear is | |||
/controls/armament/trigger | |||
To add triggers for more than one weapon: | |||
/controls/armament/trigger | |||
/controls/armament/trigger1 | |||
/controls/armament/trigger2 | |||
etc. | |||
In a submodel.xml file, this typically looks something like this: | |||
<submodel> | |||
<name>cowl-guns-bullets</name> | |||
<model>Models/Geometry/null.ac</model> | |||
<trigger>/controls/armament/trigger</trigger> | |||
. . . | |||
== Aircraft already equipped with guns== | == Aircraft already equipped with guns== |
edits