Models/Maritime/Military/CG-57/CG57.ac print("LOAD CG-57", cmdarg().getPath()); var fg_root = getprop("/sim/fg-root"); var self = cmdarg(); ######## # properties used to calculate rel wind for the bow-wave shader var speed_Node = self.getNode("velocities/speed-kts", 1); var hdg_Node = self.getNode("orientation/true-heading-deg", 1); var wind_speed_Node = self.getNode("environment/rel-wind-speed-kts", 1); var valid_Node = self.getNode("valid", 1); wind_speed_Node.setDoubleValue(0); hdg_Node.setDoubleValue(0); speed_Node.setDoubleValue(0); ######## # the main loop var update = func { var value = wind_speed_Node.getValue(); setprop("/environment/CG-57/rel-wind-speed-kts", value); value = speed_Node.getValue(); setprop("/environment/CG-57/spd-kt", value); value = hdg_Node.getValue(); setprop("/environment/CG-57/hdg-deg", value); if (valid_Node.getValue() == 0) { return; } settimer(update,0); } ######## #start the main loop update(); #print("UNLOAD CG-57 ", cmdarg().getPath()); Ensign Models/Maritime/Military/CG-57/ensign.xml 32.7427 0.0 26.6797 rotate radar-1b /sim/time/elapsed-sec 65
-11.7369 0.0 20.53
0 0 1
rotate SPS-49-Antenna /sim/time/elapsed-sec 50
29.6884 0 27.6858
0 0 1
rotate sim/multiplay/generic/float[0] 1
00-0.2
0.200
Aircraft/fleet/Models/us-ships/Effects/sprays.xml -44.00.01.2 Aircraft/fleet/Models/us-ships/Effects/sprayF.xml -46.00.00.8 range 0 15000 range railing 1000 range 1000m 0 1000