Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ENG MATER SWITCH FOR FSL320

Featured Replies

HELLO i just bought aao,i want to assign eng master swich on and off to my console  just like linda does, but there are no scripts for Fsl320 online

is there anyway to download xml for fsl320, or can i convert  linda's lua to aao' xml

this is linda' s lua ,  could i transfer this to xml ???

-- $$ Engine 1 Master Switch

function VC_PED_ENG_1_MSTR_Switch_on ()
    if ipc.readLvar("VC_PED_ENG_1_MSTR_Switch") < 30 then
        ipc.control(FSL, 78243) -- lift v.244+ (v.243- 78187) 
        _sleep(400,700)
        ipc.control(FSL, 78242) -- move v.244+ (v.243- 78186) 
        _sleep(400,700)
        ipc.control(FSL, 78245) -- down v.244+ (v.243- 78189) 
    end
end

function VC_PED_ENG_1_MSTR_Switch_off ()
    if ipc.readLvar("VC_PED_ENG_1_MSTR_Switch") > 0 then
        ipc.control(FSL, 78243) -- lift v.244+ (v.243- 78187) 
        _sleep(400,700)
        ipc.control(FSL, 78242) -- move v.244+ (v.243- 78186) 
        _sleep(400,700)
        ipc.control(FSL, 78245) -- down v.244+ (v.243- 78189) 
    end
end

function VC_PED_ENG_1_MSTR_Switch_toggle()
    if ipc.readLvar("VC_PED_ENG_1_MSTR_Switch") < 30 then
        VC_PED_ENG_1_MSTR_Switch_on()
    else
        VC_PED_ENG_1_MSTR_Switch_off()
    end
end

-- $$ Engine 2 Master Switch

function VC_PED_ENG_2_MSTR_Switch_on ()
    if ipc.readLvar("VC_PED_ENG_2_MSTR_Switch") < 30 then
        ipc.control(FSL, 78248) -- lift v.244+ (v.243- 78192) 
        _sleep(400,700)
        ipc.control(FSL, 78247) -- move v.244+ (v.243- 78191) 
        _sleep(400,700)
        ipc.control(FSL, 78250) -- down v.244+ (v.243- 78194) 
    end
end

function VC_PED_ENG_2_MSTR_Switch_off ()
    if ipc.readLvar("VC_PED_ENG_2_MSTR_Switch") > 0 then
        ipc.control(FSL, 78248) -- lift v.244+ (v.243- 78192) 
        _sleep(400,700)
        ipc.control(FSL, 78247) -- move v.244+ (v.243- 78191) 
        _sleep(400,700)
        ipc.control(FSL, 78250) -- down v.244+ (v.243- 78194) 
    end
end

function VC_PED_ENG_2_MSTR_Switch_toggle()
    if ipc.readLvar("VC_PED_ENG_2_MSTR_Switch") < 30 then
        VC_PED_ENG_2_MSTR_Switch_on()
    else
        VC_PED_ENG_2_MSTR_Switch_off()
    end
 

  • Author

could i transfer linda‘ lua file to AAO SCRIPT???

  • Commercial Member

To my best knowledge, FS Labs uses the (>K:ROTOR_BRAKE) event for their "API". There is no official documentation that I know of. Google "fslabs rotor brake"

On 3/3/2024 at 3:10 PM, h512243512 said:

function VC_PED_ENG_1_MSTR_Switch_on ()
    if ipc.readLvar("VC_PED_ENG_1_MSTR_Switch") < 30 then
        ipc.control(FSL, 78243) -- lift v.244+ (v.243- 78187) 
        _sleep(400,700)
        ipc.control(FSL, 78242) -- move v.244+ (v.243- 78186) 
        _sleep(400,700)
        ipc.control(FSL, 78245) -- down v.244+ (v.243- 78189) 
    end
end

would probably translate as

(L:VC_PED_ENG_1_MSTR_Switch, Number) 30 < if{ 78243 (>K:ROTOR_BRAKE) (WAIT:400) 78242 (>K:ROTOR_BRAKE) (WAIT:400) 78245 (>K:ROTOR_BRAKE) }

But I have no idea what any of these codes do or why the LVar has to be queried this way.

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.