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.

RPN Script to Toggle Strobe Ligts on Aerosoft Twin Otter DHC

Featured Replies

Midi Controller : Korg nanokontrol2
I am using : https://flightsim.to/file/27128/dhc-6-twin-otter-bvar-mappings-for-lorby-s-axis-and-ohs-wip

Script 1: Strobe Light ON
1·(>L:AAO_TWOTTER_STROBE,·number)

Script 2: Strobe Light OFF
-1·(>L:AAO_TWOTTER_STROBE,·number)

I have tested both scripts and they work.

Now, I want to use these two scripts and assign to one button on the Midi controller to toggle on/off the strobe lights on the Aerosoft Twin Otter.

I can bind normal msfs 20202 event, ''toggle strobe" to a single button and the strobe lights work. However, the switch itself does not animate as the animation is controlled using BVars.

Any ideas ?

Thanx.

 

Edited by elstowlads

  • Commercial Member
1 hour ago, elstowlads said:

Now, I want to use these two scripts and assign to one button on the Midi controller to toggle on/off the strobe lights on the Aerosoft Twin Otter.

Combine them into a single toggle script.

(L:AAO_TWOTTER_STROBE,·number)·1·==·if{·-1·(>L:AAO_TWOTTER_STROBE,·number)·}·els{·1·(>L:AAO_TWOTTER_STROBE,·number)·}

Edited by Lorby_SI

LORBY-SI

  • Author
2 hours ago, Lorby_SI said:

Combine them into a single toggle script.

(L:AAO_TWOTTER_STROBE,·number)·1·==·if{·-1·(>L:AAO_TWOTTER_STROBE,·number)·}·els{·1·(>L:AAO_TWOTTER_STROBE,·number)·}

Works beautifully. Thanx.

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.