X Plane 12 Copilot Take OFF Climb LUA Script.

Pilot Cocpilot X Plane 12 LUA SCRIPTS

X Plane 12 Copilot Take OFF Climb LUA Script.

This X Plane 12 Copilot Take OFF Climb LUA Script can be used alongside the Baron58_Copilot_Startup Lua Script as the Copilot start up takes you from ENGINES RUNNING at the FBO/HANGER to the runway ready to take off into the blue sky beyond!

The X Plane 12 Copilot Take OFF Climb LUA Script follows on with Rotate call at 85 knots, Gear up and Flaps up at 120 knots plus a climb recommendation on Speeds as an initial best rate climb of 105 Knots then shortly after a 125 cruise climb recommendation.

Initially the X Plane 12 Copilot Lua Script script is dormant until you exceed 30 knots! If your at a windy location and the wind is howling then it may trigger the script but not until you reach 85 knots will it say anything regardless.

Baron 58 X Plane 11
Baron 58

SAFETY CALLOUT – You Don’t Want To Hear It!

Amazon Prime Banner

The safety callout does not always sound and if you never hear it your doing well! The POWER,POWER,POWER callout is only triggered if you pass 110 knots and for some unknown reason or distraction drop back to 100 knots or less!

In the real world many pilots die by getting distracted on takeoff then often climb to steeply causing a stall and often a deadly spin into the ground from around the 500ft mark. This small section is designed to get your attention if that occurs and hopefully save your Virtual Pilots Life!

What Does This Script Say?

  1. Eighty Five Knots, Rotate – Call at 85 Knots
  2. Gear Up – Flaps Up – Call at 120 Knots
  3. Initial Best Climb Speed Reminder – 105 Knots
  4. Best Cruise Climb Speed – 125 Knots
  5. EMERGENCY – POWER POWER POWER – If your going to stall after passing 120 knots.

———————————–

Can I Edit the Script?

Yes, absolutely your very welcome to edit the spoken words which are highlighted below for you. This is one of the line so you can identify what’s changeable –
speakNoText(“Positive rate, gear up“)

You can change the format or wording and even add your name if you want where it says SIR! On my own sim it calls me by name which is a nice touch.

Commas put a small pause between words but the Brackets ( ) and the Inverted Commas “” must stay as you see them.

Lua Programing Language
Lua Programing Language

What Not To Do!

I don’t recommend you adjust anything other than the X Plane 12 Copilot Lua Script other than the highlighted spoken areas. I have spent a week on this little script and I can tell you unintended consequences come from adjusting the figures if your not absolutely sure what they do!

Please keep copies of the files you download in a separate area, especially if your playing and editing them so you have a place to go back to if it goes wrong.

Create Your Own File.

Copy everything BETWEEN the Dotted LINES and Paste into a NOTEPAD page!
Name it TakeOff_Climb.lua
ENSURE you change the file type from TXT to ALL FILES.
If you look at your file and it says TakeOff_Climb.lua.txt you didn’t do correctly ok! Resave it and change the FILE TYPE in the lower save box to ALL FILES and you will see it named correctly as TakeOff_Climb.lua – OK
Please the file in your X Plane 12/resources/plugins/flywithlua/scripts folder.

Your ready to GO!

Further Tested and updated 25/6/2025.


–[[
TakeOff_Climb.lua
Voice callouts for Rotate, Gear Up, Power Warning, Climb and Cruise checklist
Activates only after aircraft reaches 30 knots
Created by Brendon McAliece – LETSFLYVFR.com
–]]
— Datarefs
dataref(“IAS”, “sim/flightmodel/position/indicated_airspeed”, “readonly”)
dataref(“Y_AGL”, “sim/flightmodel/position/y_agl”, “readonly”)
dataref(“VS”, “sim/flightmodel/position/vh_ind_fpm”, “readonly”) — vertical speed
— Voice function
function speakNoText(sText)
if XPLMSpeakString ~= nil then
XPLMSpeakString(sText)
end
end
— State variables
local script_active = false
local rotate_called = false
local gearup_called = false
local power_warning_called = false
local post_gearup_speed_high = false
local climb_check_called = false
local cruise_check_called = false
function flightCallouts()
— Activate script logic only once IAS exceeds 30 knots
if not script_active then
if IAS >= 30 then
script_active = true
else
return — Do nothing until active
end
end
— Rotate callout strictly at 85 knots
if not rotate_called and IAS >= 85 then
speakNoText(“Rotate, eighty five knots”)
rotate_called = true
end
— Consider “airborne” if vertical speed is positive or slightly off ground
local airborne = Y_AGL > 0.5 or VS > 100
— Gear up callout at 100 knots and airborne
if not gearup_called and IAS >= 100 and airborne then
speakNoText(“Positive rate, gear up”)
gearup_called = true
end
— Mark that speed has reached safe climb speed after gear up
if gearup_called and IAS >= 120 then
post_gearup_speed_high = true
end
— Power warning if speed drops below 105 after reaching 110+
if gearup_called and post_gearup_speed_high and not power_warning_called and IAS < 105 then
speakNoText(“Power, Power, Power”)
power_warning_called = true
end
— Climb checklist callout at 110 knots after gear up
if gearup_called and not climb_check_called and IAS >= 110 then
speakNoText(“Flaps up Please, climb speed, one zero five knots initially, Monitor engine instruments. Cruise climb one hundred and twenty knots when your ready please Sir”)
climb_check_called = true
end
— Cruise checklist callout at 160 knots after gear up
if gearup_called and not cruise_check_called and IAS >= 160 then
speakNoText(“Recommended cruise altitude eight to ten thousand feet at your discretion, Sir”)
cruise_check_called = true
end
end
— Register loop
do_every_frame(“flightCallouts()”)

—————————————————–

Legal Notice

  • FREE TO DOWNLOAD & USE: The BARON58_ColdAndDark Lua Script is completely free for personal use. You are welcome to download, install, and use it in your X-Plane 12 setup.
  • NOT FREE TO REDISTRIBUTE: Redistribution of this script, in whole or in part, without the permission of the creator, Brendon McAliece of LetsFLYVFR.com, is strictly prohibited.
  • USER MODIFICATIONS: While you are free to edit the script for your personal use, modifying the Lua script incorrectly may cause it to malfunction. Any modifications are done at your own risk. The script remains the intellectual property of Brendon McAliece, the creator and owner, associated with LETSFLYVFR.com and the LETSFLYVFR YouTube Channel.
AMAZON KINDLE

X Plane 12 Copilot Lua Script – Common Issues & Troubleshooting

While the TakeOff_Climb.lua Script has been extensively tested by Brendon McAliece (AKA Gunnie) of LETSFLYVFR.com, there may still be occasional issues, especially as the script is still in beta. The script included I flew with today and works perfectly!

Common Issues:

  • No Speech or Callouts: Ensure FlyWithLua NG is properly installed. If the Lua script isn’t executing, it might be due to missing files or incorrect setup. Check the installation steps carefully.
  • Script Not Running: Double-check that the script file is saved with the correct .lua extension and placed in the FlyWithLua/Scripts/ folder.
  • Missing Datarefs or Errors in Log: If you see errors about missing datarefs, it may indicate that a specific part of the aircraft model or X-Plane setup is not fully compatible with the script. Report any issues in the comments or contact us.
  • Performance Issues: If the script causes performance issues, try disabling other scripts temporarily to identify potential conflicts.

Current Baron 58 Lua Scripts Available.

Author

Brendon McAliece - Gunnie and a Jabiru 170 Sport Pilot Certified.
Brendon McAliece – Sport Pilot Certificate Holder

Brendon McAliece (Aka Gunnie) is a military veteran with 23 years working on Jet Fighters, their weapons systems and ejection seat/module systems as well as munitions and R&D. Involved with flight simulation since the 1980s, he has flown all the major flight simulators over the years.

He is an Australian expat who has lived in Malaysia, UK, Saudi Arabia and more recently Thailand. He is a multi-lingual blogger who loves to share his life experiences here on LetsFlyVFR.com and DreamingGuitar.com, with his lifestyle and Travel experiences Blog plus his Dreaming Coffee website.

Learn More @ 
DreamingGuitar.com – DreamingCoffee.com – LetsFlyVFR.com

HOME – BLOG – SHOP – ABOUT )

This page has been viewed 22 times.

As an Amazon affiliate I may benefit from qualifying sales.

One response to “X Plane 12 Copilot Take OFF Climb LUA Script.”