483
edits
(→Adding animated jetways in scenery: Documentation on manual editing) |
(→Adding support in aircraft: Forgot the bit about the MP network) |
||
Line 45: | Line 45: | ||
Where '''X-M''', '''Y-M''', and '''Z-M''' are the X/Y/Z coordinates of the door in meters and '''HOOD-DEG''' is the jetway hood rotation amount. To specify more doors, just add more door elements. | Where '''X-M''', '''Y-M''', and '''Z-M''' are the X/Y/Z coordinates of the door in meters and '''HOOD-DEG''' is the jetway hood rotation amount. To specify more doors, just add more door elements. | ||
Finally, add the following code into your XML model file. It enables the jetways to connect to your aircraft over the [[multiplayer]] network. | |||
<nasal> | |||
<load> | |||
var model = cmdarg(); | |||
model.getNode("door[0]/position-x-m", 1).setValue(X-M); | |||
model.getNode("door[0]/position-y-m", 1).setValue(Y-M); | |||
model.getNode("door[0]/position-z-m", 1).setValue(Z-M); | |||
model.getNode("door[0]/jetway-hood-deg", 1).setValue(HOOD-DEG); | |||
</load> | |||
</nasal> | |||
Again, replace '''X-M''', '''Y-M''', '''Z-M''', and '''HOOD-DEG''' with their respective values. To add more doors, duplicate the last 4 lines of [[Nasal]] code and replace <tt>[0]</tt> with <tt>[1]</tt> or <tt>[2]</tt>. | |||
= Adding support in scenery = | = Adding support in scenery = |
edits