Howto:Animated jetways: Difference between revisions

Jump to navigation Jump to search
Line 98: Line 98:


=== Adding support in AI aircraft ===
=== Adding support in AI aircraft ===
Follow the steps for regular aircraft above, but only add in the Nasal code.
Follow the steps for regular aircraft above, but only add in the Nasal code.  
 
Background: The model definition of AI aircraft is not available in Nasal. So any door definition located as property inside any XML file is not available for the jetways module. For that reason AI aircraft xml files must contain an embedded piece of Nasal code for writing the door information into the AI models property tree:
 
<syntaxhighlight lang="xml">
<?xml version="1.0"?>
<PropertyList>
        ...
        <nasal>
                <load>
                var model = cmdarg();
                model.getNode("door[0]/position-x-m",1).setValue(-19.241);
                model.getNode("door[0]/position-y-m",1).setValue(-1.529);
                model.getNode("door[0]/position-z-m",1).setValue(2.505);
                model.getNode("door[0]/jetway-hood-deg",1).setValue(3);
                </load>
        </nasal>
        ...
</PropertyList>
</syntaxhighlight>


== Adding support in scenery ==
== Adding support in scenery ==
183

edits

Navigation menu