August 1, 20196 yr Hi, me again, Here's a simple question: How do I interrogate something like for example, fuel quantity? Let's say I want to have LINDA examine the FUEL_TOTAL_QUANTITY and if it is less than X gallons, play an alarm sound. It's an 'if' 'then' 'else' thing, right? But what is the correct structure fo the code? Honestly, I've looked but I can't find an example of such a simple thing anywhere. Thanks in advance, D
August 22, 20196 yr -- Fuel Alarm --function Fuel_Alarm()if ipc.readLvar("A:FUEL_TOTAL_QUANTITY, gallons")<=X then alarmf=sound.play("BingoFuel") sound.adjust(alarmf, 100) end ipc.sleep(50)end X being the integer amount for your number of gallons. You may need to tweak the sound to match your system. Edited August 22, 20196 yr by Masterius
Archived
This topic is now archived and is closed to further replies.