1
0
Fork 0
fgdata/Nasal/seaport.nas

12 lines
481 B
Text
Raw Permalink Normal View History

setlistener("/sim/presets/latitude-deg", func {
logprint(LOG_INFO, "*** NEW LOCATION ***");
settimer(func {
var typ = getprop("/sim/type");
var lat = getprop("/position/latitude-deg");
var lon = getprop("/position/longitude-deg");
var g = geodinfo(lat, lon);
if ((g != nil and g[1] != nil and g[1].solid) and (typ == "seaplane") )
fgcommand("dialog-show", props.Node.new({ "dialog-name": "seaport" }));
}, 8);
}, 1);