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.

BGLC day/night switch

Featured Replies

Hi All,perhaps it's a rather stupid question, but I can't anyway figure out the answer, at the moment....Does anyone know which is the equivalent of the old '28C' SCASM variable in BGLC language?I'm trying to make some Gmax-built lights to switch off at day, I know I've to use the IFIN1 command (equivalent to the SCASM's 'IfVarAnd), but I don't know how the '28C' variable has to be written in BGLC.Can anyone help?Thanks in advance

Hi,Command for switching lights off looks as follow: IFIN1 LBL1ms, tod, 2,4 ; ****lights procedure..... LBL1ms label BGLCODE BGL_END BGL_RETURN Mark

  • Author
  • Commercial Member

28C is still 28C :)I think you need to write it hexidecimal as 028ChArno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Thanks Mark and Arno,Arno, happy to hear several variables are still the same in BGLC too, just have to write them in hexadecimal.Mark, where did you found the 'LBL1ms, tod' instruction?I guess 'tod' is 'time of day', but I never found an 'LBL1ms' instruction into the FS Scenery SDK.Is there any document I should know and I don't know still?Thanks once more

  • Author
  • Commercial Member

LBL1ms is the name of the label you are jumping to when the time of day doesn't match what you want (so isn't between 2 and 4 in the example). You will have to add this label yourself (and of course you can use any name you like, as long as it is unique).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Argh........:-hah....so the variable is just 'tod', and the values are the same used with SCASM programming.Of course, once made clear that 'LML..etc.' is simply a label, I know that I can name it as I like.Once more, thanks!

  • Author
  • Commercial Member

tod is just an alias for 028ch, just to make the code a bit more readable. It is changed into the hex value of the variable by BGLC.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Create an account or sign in to comment

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.