January 21, 20242 yr I have made scripts that use the cockpit switches to enable missing anti-ice data refs on certain XP11 converted planes. I put the acft icing data on screen while in cold wet conditions. I observed the icing data refs for the various heaters as I flipped switches, and If they didn't switch I made them switch. It is a hack to ensure planes that are anti-ice capable truly anti-ice. Example from the RWD DHC6 script: ------------------------------------------------------------------------------------------------------------------------------------------------------ if AIRCRAFT_FILENAME == "DHC6.acf" then function Set_AI() -- Prop Deice Switch if get("TO/overhead/INTAKE_AI_SWITCH") == 1 then command_once("sim/ice/inlet_heat0_on") command_once("sim/ice/inlet_heat1_on") else command_once("sim/ice/inlet_heat0_off") command_once("sim/ice/inlet_heat1_off") end -- AOA -- No AOA switch so made one up. if get("sim/cockpit2/ice/ice_pitot_heat_on_pilot") == 1 then set("sim/cockpit/switches/anti_ice_AOA_heat",1) set("sim/cockpit/switches/anti_ice_AOA_heat2",1) else set("sim/cockpit/switches/anti_ice_AOA_heat",0) set("sim/cockpit/switches/anti_ice_AOA_heat2",0) end -- Pitot Heat Switch -- Copilot Pitot tube not heating if get("sim/cockpit2/ice/ice_pitot_heat_on_pilot") == 1 then set("sim/cockpit2/ice/ice_pitot_heat_on_copilot",1) else set("sim/cockpit2/ice/ice_pitot_heat_on_copilot",0) end -- Window Heat -- No window heat switch that I can find so made one up. if get("sim/cockpit2/ice/ice_pitot_heat_on_pilot") == 1 then command_once("sim/ice/window_heat_on") command_once("sim/ice/window2_heat_on") command_once("sim/ice/window3_heat_on") command_once("sim/ice/window4_heat_on") set("sim/flightmodel/failures/window_ice",0) -- This is a cheat. Ice kept forming and this clears it up. else command_once("sim/ice/window_heat_off") command_once("sim/ice/window2_heat_off") command_once("sim/ice/window3_heat_off") command_once("sim/ice/window4_heat_off") end end do_often("Set_AI()") end
Archived
This topic is now archived and is closed to further replies.