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.

Variables in action.lua

Featured Replies

Hi,

If I want to modifiy a function for a given aircraft in actions.lua, I will copy it to user.lua for the same aircraft and modify it here. Will variables declared in actions.lua be 'visible' from the user.lua function, or will I have to declare ir again?

 

rgds

 

Søren Rasmussen

CPU: Intel i9-9900K @ 5Ghz | GPU: ASUS GeForce RTX 3080 ti 11Gb| MoBo: ASUS | OS: Win10 Pro 64bit ver. 1709 | RAM: 32GB 4 x 8GB Corsair | HD:  1 Samsung SSD 840 Pro 500GB, 1 Samsung SSD 850 Pro 500GB, 1 Seagate 2TB SATA | Monitor: 1 BenQ 24" | Resolution: 1920x1080x32, Maximized Window Mode | Sims: P3Dv4.4 Professional, FSX SP2 | Other Add-Ons: FSUIPC v5, FSL A320x, PMDG 737, PMDG 744 QUOTSII, PMDG 777, Navigraph NavData & charts

Yes. All LINDA LUA variables, including system and aircraft, will be visible and modifiable. I would caution against modifying LINDA system LUA variables as  this may cause unexpected results or errors. You can use the prefix local to make the LUA variable specific to the function in which it is declared in.

Writing your own functions in user.lua can be named the same as existing aircraft function to override the original and will be called instead of the original. In this case no variables declared by the original function can be used. 

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

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.