1
0
Fork 0
fgdata/Aircraft/ufo/ufo-set.xml

61 lines
1.2 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<sim>
<description>UFO from the 'White Project' of the UNESCO</description>
2005-01-18 01:27:18 +00:00
<author>ET</author>
<flight-model>ufo</flight-model>
<sound>
<path>Aircraft/ufo/ufo-sound.xml</path>
</sound>
<panel>
<visibility>false</visibility>
</panel>
<model>
2004-01-04 15:32:20 +00:00
<path>Aircraft/ufo/Models/ufo.xml</path>
</model>
<help>
<title>UFO</title>
<key>
<name>joystick fire button</name>
<desc>fly backwards</desc>
</key>
<key>
<name>[ ]</name>
<desc>decrease/increase maximum speed</desc>
</key>
</help>
</sim>
<nasal>
<ufo>
<script>
var maxspeed = props.globals.getNode("engines/engine/speed-max-mps");
var speed = [10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000];
var current = 7;
controls.flapsDown = func(x) {
if (!x) {
return;
} elsif (x &lt; 0 and current > 0) {
current -= 1;
} elsif (x > 0 and current &lt; size(speed) - 1) {
current += 1;
}
var s = speed[current];
maxspeed.setDoubleValue(s);
2006-03-11 11:10:58 +00:00
gui.popupTip("MaxSpeed " ~ s ~ " m/s");
}
</script>
</ufo>
</nasal>
</PropertyList>