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.

HJET LVAR Script or button

Featured Replies

I'm trying to create Streamdeck button or script for the various ground handling options like opening the main door and connecting the GPU.

And even though I can see the LVAR (L:HJET_EXIT_OPEN) in AAO, I just can't seem to figure out how to actually use it.

I've been trying in various ways. Like just having an event like L:HJET_EXIT_OPEN with the value 1. But also tried creating a script like (L:HJET_EXIT_OPEN,·Number)1(>L:HJET_EXIT_OPEN,·Number). Or stuff like: 1 (L:HJET_EXIT_OPEN, Number) - (>L:HJET_EXIT_OPEN, Number). Tried Bool as well but nothing works.

  • Commercial Member
14 minutes ago, flycln said:

I'm trying to create Streamdeck button or script for the various ground handling options like opening the main door and connecting the GPU.

And even though I can see the LVAR (L:HJET_EXIT_OPEN) in AAO, I just can't seem to figure out how to actually use it.

I've been trying in various ways. Like just having an event like L:HJET_EXIT_OPEN with the value 1. But also tried creating a script like (L:HJET_EXIT_OPEN,·Number)1(>L:HJET_EXIT_OPEN,·Number). Or stuff like: 1 (L:HJET_EXIT_OPEN, Number) - (>L:HJET_EXIT_OPEN, Number). Tried Bool as well but nothing works.

Is that really how it works? Or does this LVar only tell you that the exit is open or closed? Are you certain that changing it will open or close the door?

LVars are not events. They are variables, they simply contain a value. They are used in the internal aircraft code for various purposes, more often than not for the animations.
In some aircraft, changing that value will do something in the cockpit - but that is not what LVars are for. This usually either happens by accident or the aircraft developer implemented it that way on purpose. 

Also, you really need to pay attention to AAO RPN syntax. The correct placement of space charactes is EXTREMELY important. Get those wrong and your script will not work (like your second example - it is logically wrong too, but the syntax is wrong also).

Edited by Lorby_SI

LORBY-SI

  • Author

Edit: Nevermind, will try some more first

Edited by flycln

  • Commercial Member

Unfortunately this is a Marketplace aircraft, so one cannot look at their code. The developer mode is useless too, I can only see that LVar, but the plane obviously doesn't care about that one. When it is set to 1 via Script, the aircraft immediately sets it back to 0. Something else is in play here.

How do you open the door in normal operations? Is there a clickspot somewhere?

Edited by Lorby_SI

LORBY-SI

This script works perfectly for toggling the door open or close. Latest Honda Jet 2.0

1·(L:HJET_EXIT_OPEN,·Bool)·-·(>L:HJET_EXIT_OPEN,·Bool)

Assign it to a button (Joystick, XTouch etc...) or make it an On/Off for the Stream deck.

There is a spreadsheet with all the current bindings for the HJet available on FlightFX Discord Server under #hjet-important-information

Hope this helps.

  • Commercial Member
46 minutes ago, HardCat55 said:

This script works perfectly for toggling the door open or close. Latest Honda Jet 2.0

1·(L:HJET_EXIT_OPEN,·Bool)·-·(>L:HJET_EXIT_OPEN,·Bool)

Assign it to a button (Joystick, XTouch etc...) or make it an On/Off for the Stream deck.

There is a spreadsheet with all the current bindings for the HJet available on FlightFX Discord Server under #hjet-important-information

Hope this helps.

Changing that LVar does nothing for me. But maybe I am looking at it the wrong way - how/where do I see the door opening? From the inside of the plane too? And I think that there is some extra code that prevents opening the door in certain situations. Unfortunately my MSFS crashes before I can really take a look (I'm in the Beta)

Edit: OK, yes, this is working - when you are at a parking position! My mistake, I just jumped into the plane the quick way, with it sitting on the runway!

Edited by Lorby_SI

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.