September 12, 20196 yr Hi all, Slowly getting to grips with using LINDA for custom actions with switches etc but still having a problem getting my head into reading Lvars and getting returned values to trigger other things like a sound etc. I think I know enough to know that the code below is wrong but it would help me enormously if someone could correct it. This would lead me onto a greater use of LINDA, even if it just helps the penny to drop. I have a module file that works well for switches but somehow, I have it in my head that this sort of code should be in the 'user' file and so that is where I have put this... -- Fuel Alarm --function Fuel_Alarm() ftq=readLvar("FUEL_TOTAL_QUANTITY",gallons) if ftq<=(30) then alarmf=sound.play("BingoFuel") sound.adjust(alarmf,-100) else end end Thanks in advance, D
September 12, 20196 yr if ftq<=(30) then this? if (ftq<=30) then CASE: Fractal Terra Silver CPU: AMD R5 7800X3D 5.0Ghz RAM: 32GB DDR5 6000 GPU: nVidia RTX 4070 Ti SUPER · SSDs: Samsung 990 PRO 2TB M.2 PCIe · PNY XLR8 CS3040 2TB M.2 PCIe · VIDEO: LG-32GK650F QHD 32" 144Hz FREE/G-SYNC · MISC: Thrustmaster TCA Airbus Joystick + Throttle Quadrant · MSFS2024 · Windows 11
September 12, 20196 yr Author Thanks Nuno Pinto for the suggestion. Unfortunately, it hasn't fixed it. I'm thinking that maybe this function should be under one of my switch functions, like the battery on/off function in the actions file. I'll try that. D
Archived
This topic is now archived and is closed to further replies.