CAPTAIN SIM FORUM | |
767 Captain II (P3D4) >> 767 Captain II - GeneralĀ >> OVSPD prevention lua script
https://www.captainsim.org/forum/csf.pl?num=1630124345 Message started by Angel of Attack on Aug 28th, 2021 at 4:19am |
Title: Re: OVSPD prevention lua script Post by Angel of Attack on Aug 28th, 2021 at 4:21am
Here is the code I tried to make it cut power on AT+10kts, but it doesn't work, just put here if anyone knows how to fix it:
[code] function Anti_ATOV() local ATSPD = ipc.readLvar("L:G03_008_LT0") local ATVNV = ipc.readLvar("L:G03_012_LT0") local SELSP = ipc.readLvar("L:L03_007_BUG") local IASN = ipc.readUW(0x02BC)/128 local SEL10 = SELSP + 10 if (ATSPD = 1) then if (IASN > SEL10) then ipc.control(65604, 0) ipc.sleep(100) else end else end if (ATVNV = 1) then if (IASN > SEL10) then ipc.control(65604, 0) ipc.sleep(100) else end else end end [/code] |
CAPTAIN SIM FORUM » Powered by YaBB 2.6.0! YaBB Forum Software © 2000-2024. All Rights Reserved. |