Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lua script

Featured Replies

Hello,

I am new to this forum so please apologize if I use the Topic.

Currently I am a user of XPlane11 but I would like to switch to P3D due to the better planes and so on...

So I've build a small button box for flight sim and wrote a Fly with Lua assignment script so I can use all my buttons, switches, rotary encoders properly.

I am wondering if it is possible to write a similar script for P3D?

Does someone have some experience with it?

 

I really appreciate any help.

Thanks in advance!

Grizzly

 

The script shall have some features like shown below:

        
dataref("heading", "the_dataref_of_heading", "writeable")        
function do_hdg_up()
i = 1
   if button(1781then
    i = 10
   end
heading = heading + i
end
create_command("script/doHeading"heading up","do_hdg_up()""""")
set_button_assignment(1783"script/doHeading")
  • Author

Thank you for your reply @rob0203!

I will take a look at it.

What's wrong with good old FSUIPC and macros ?

Neil Ward

CPU Intel Core i7 [email protected] with FrostFlow 240L Liquid Cooling, M/B ROG STRIX X299-E-GAMING, NVIDIA GeForce GTX 1080 Ti, RAM G.Skill 32GB DDR4 Ripjaws Blue, 

  • Author

Thanks again for all your help!

16 hours ago, rob0203 said:

And with Arduino there is Mobiflight: https://www.mobiflight.com/en/index.html

I already have a "joystick" board so I won't switch to an Arduino at the moment unless it is necessary

 

5 hours ago, Freo said:

What's wrong with good old FSUIPC and macros ?

Well, first of all thanks for this idea. I haven't taken a look at it but I surly will!

  • Author

Now I have an another question because I have see that FSUIPC needs a license. So is there also a free method to do my plans?

Thanks for the help

There is a free basic version of FSUIPC, but it has limited capability. Not sure if it will do macros, as I have never used it, only the paid full version.

Neil Ward

CPU Intel Core i7 [email protected] with FrostFlow 240L Liquid Cooling, M/B ROG STRIX X299-E-GAMING, NVIDIA GeForce GTX 1080 Ti, RAM G.Skill 32GB DDR4 Ripjaws Blue, 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.