############################# # Usable with FlightGear # Property of Gerard Robin # Copyright License: GPL # # Was by Gerard ROBIN. # update: grtux hangar team https://sites.google.com/site/grtuxhangar/ # COPYRIGHT ############################ #init Moorage. #Replace the generic Seaboat fightgear system which is wrong, and not completed with the list of harbours. #This is a customized developpement done from an original idea => the Boeing 314A Project (the nice and accurate FG Clipper) thanks to his unknown Author. #We are using the original harbour list which was used by the boeing314 model and using too a specific customized addon list which could be improved. #both files are: mooring-pos_boeing314-based.xml, mooring-pos.xml ############################ #Modifications: #Wayne Bragg/c172p-detailed, April 2018 ############################ #init if allowed and called for var mooring_preset = 0; var presets = props.globals.getNode("/sim/presets"); var seaplanes = props.globals.getNode("/systems/mooring/route").getChildren("seaplane"); var harbour = ""; var airport = presets.getChild("airport-id").getValue(); setlistener("/sim/signals/fdm-initialized", func { setprop("/controls/mooring/port-available", 0); if(airport != nil and airport != "") { for(var i=0; i