8,802
edits
m (extra warning added) |
mNo edit summary |
||
Line 29: | Line 29: | ||
</PropertyList> | </PropertyList> | ||
===dr400.xml=== | ===Models/dr400.xml=== | ||
The first part is related to the nasal script. <tt>("Aircraft/DR400/Models/Liveries");</tt> points FlightGear to the directory where we store our liveries. This is a different directory for every plane, but there should be only one folder for one plane, containing all the liveries for that plane. | The first part is related to the nasal script. <tt>("Aircraft/DR400/Models/Liveries");</tt> points FlightGear to the directory where we store our liveries. This is a different directory for every plane, but there should be only one folder for one plane, containing all the liveries for that plane. Add the following code to your models .xml file: | ||
<nasal> | <nasal> | ||
Line 64: | Line 64: | ||
</animation> | </animation> | ||
===liveries.nas=== | ===Nasal/liveries.nas=== | ||
The only thing you might change in the nasal file is the directory of the liveries. If you don't have the livery name in <tt>sim/model/livery/name</tt>, then you have to add this as second function argument. | The only thing you might change in the nasal file is the directory of the liveries. If you don't have the livery name in <tt>sim/model/livery/name</tt>, then you have to add this as second function argument. | ||
aircraft.livery.init("Aircraft/DR400/Models/Liveries"); | aircraft.livery.init("Aircraft/DR400/Models/Liveries"); | ||
=== | ===dr400-set.xml=== | ||
<model> | <model> | ||
<path>Aircraft/DR400/models/dr400.xml</path> | <path>Aircraft/DR400/models/dr400.xml</path> |