Support me AND have a ton of fun! Consider purchasing AirSpray, my crop dusting add-on for X-Plane! [ Ссылка ] or [ Ссылка ]
Links to get you going:
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
Wherein we add some custom functionality to an aircraft by scripting in XLUA. Using the Default 172 we code up a custom startup scenario where we start outside the plane with the door open (walk up style), and make the door close if it's open while moving.
We will build up to more advanced things and I'll try to teach lua in practical, X-plane specific steps.
I'm no great shakes at programming. But if you are just getting started with the idea, this should get you going. Learn more about XLUA in this thread:
[ Ссылка ]&
Time Stamps:
0 - 1:49 - Intro to the series
1:49 - 2:35 - What is a dataref?
2:35 -4:45 - Intro to datareftool
4:45 - 6:10 - Array datarefs, how they look/work
6:10 - 9:40 - Gathering datarefs
9:50 - 11:40 - commenting in lua, block commenting
11:40 - 12:35 - directory structure of XLUA, how it must be.
12:35 - 15:00 - putting our datarefs at the top of our lua script, naming variables
15:00 - 16:00 - pre-defined functions, explaination
16:00 - 29:00 - creating a function under flight_start, testing, tweaking.
29:00 : END - creating a new function under after_physics
[ Ссылка ]
Get Scripty - Episode One: Intro to Lua scripting for X-Plane, with XLUA flavor. Learn how to manipulate datarefs and code a little bit.
[ Ссылка ]
Get Scripty - Episode Two: We build on our Lua scripting knowledge, this time in FlyWithLua. Learn about boolean flags and how to prevent FlyWithLua script conflicts.
[ Ссылка ]
Get Scripty - Episode Three: We build on our lua scripting skills by using else, elseif, one-shot timers, Log Message, and other X-Plane debugging facilities.
[ Ссылка ]
Get Scripty - Episode Four: We learn how to flip conditions back and forth by using timers and boolean flags together, using some x-plane built-in failures to create a rough idle engine condition.
[ Ссылка ]
Get Scripty - Episode Five: We create some custom commands that are assignable to keyboards or joysticks, and create a custom "system" for our aircraft.
[ Ссылка ]
Get Scritpy - Episode Six: IMGUI graphical user interface tutorial, where we create buttons that fire off our custom commands, and we add a custom sound to our system.
Ещё видео!