February 25, 201511 yr Hi I have changed a function in the action.lua for the A2A aircraft to display RPM instead of Horsepower, I know this should be done in the user.lua so it wont be overwritten but I am not sure how to do that, changes as below. I also changed temp units from F to C by changing to a 0 but once again not sure what and how I add this to the LUA so it is a persistent change -- Power (in RPM) EngRPM = round(IPC.readLvar("L:ENG_RPM")) then later on it has IF _MCP2() then UpperInfoLong = "RPM " ETC ETC just not sure how much of the code needs to go into user.lua, hope this makes sense RegardsWayne Wayne such Asus Hero Z690, Gigabyte Aorus Master 5080, I914900K, Kraken 360 AIO CPU Cooled, 96 GIGS Corsair DDR5, 32 Inch 4K by 3
February 25, 201511 yr Hi Wayne Thank you for your question. Any functions you place in users.lua will be actioned as any other when called. Also if the function has the same name as one you wish to replace it will 'override' the existing function and be executed in place of the old one. All functions should be added in the format: function MyNewFunction {my code} end Simply copy your modified function and paste it into users.lua in the \linda\aircrafts\{your aircraft}\ folder alongside actions.lua. Which code module did you change to display RPM and deg C? 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
February 25, 201511 yr Author thanks I will give that a try when I get a chance, think I understand now Wayne such Asus Hero Z690, Gigabyte Aorus Master 5080, I914900K, Kraken 360 AIO CPU Cooled, 96 GIGS Corsair DDR5, 32 Inch 4K by 3
Create an account or sign in to comment