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.

One-way lights

Featured Replies

  • Author
  • Commercial Member

If you add a check to the source code, that checks where you are relative to the light you can draw it from only one side.I don't know how you have created the lights (which program?), I could give you an example in SCASM or BGLC if you need.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

Thanks, Arno.I'll use NOVA for the lights, because it will be on a falt macro applied to the runway. If you can post the code in SCASM format, I'll very happy.Thanks again.Regards,Jose M. BarruezoSpainhttp://personal.telefonica.terra.es/web/as...ot/logosoc4.jpg

  • Author
  • Commercial Member

For SCASM you should use the VectorJump command. The command has the following parameters:

VectorJump( label x y z len )

The x y and z determine the direction of the vector (sum of them must be 1). With the len you can also give a length to the vector. If you for example want to check if you are on the positive x side you can use VectorJump( label 1 0 0 32767 ). If the condition is true the code following the command is executed, otherwise a jump to label is made. So if you put the label after the lights and the lights after the command you can get them working from one side.I hope this makes it (a bit) clear, if not don't hesitate to ask again :).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

Hello,The only way to produce one side visible light or dot is like this:Light( p 6 -10.0 6.0 0.0 80 0.1 0.4 0xFF0000 0 0 ) ; Normal light (strobe)Change the second argument 6 to 11Light( p 11 -10.0 6.0 0.0 80 0.1 0.4 0xFF0000 0 0 ) ; directionalYou will be able to see this dot ONLY when you are really in front of it.Cheers,Rafael Sanchez

  • Author
  • Commercial Member

Hi Rafael,Thanks for the code, I hadn't used this (relatively new) command before.It's true that this code should work better, as my code shows the light when you are at the side you want to check for, but it still shines in any direction. While this code shows it only in the correct direction.But when I check the SCASM docs, they say "currently not used by FS". Is this still information for Fs2000 and does Fs2002 support it?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

Hi Arno,>It's true that this code should work better, as my code >shows the light when you are at the side you want to check >for, but it still shines in any direction. While this code >shows it only in the correct direction. I think it also works with an argument value =12 but I don't remember if there is a difference.>But when I check the SCASM docs, they say "currently not >used by FS". Is this still information for Fs2000 and does >Fs2002 support it? In the actual Scasm docs Manfred says :>>> 11 draw landing light cone only>>> 12 draw taxi light cone onlybut this is not true as you will see, as there is not cone at allCheers,Rafael[a href=http://www.fsnova.com/]http://www.fsnova.com/images/NsAnimation1.gif[/a]

How about example in BGLC of directional nav_light ?Thanks Ted

Arno, Can I ask you again to give an example of directional nav_light in BGLC? It would be very handy for approach lights. Ted

  • Author
  • Commercial Member

Hi Ted,I don't have an example right away (never tried it yet), but I'll try to make one in a while.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

How about me mailing to you nicely done gMax model of approach light, with which perhaps you could do your code magic. Thanks in advance. Ted

  • Author
  • Commercial Member

Sounds like a good idea :), you can mail me at [email protected]


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.