February 27, 20197 yr 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
February 27, 20197 yr 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.