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.

Blinking lights in dynamic object libraries

Featured Replies

Hi all!I've got few questions about lights in dynamic object libraries. It's quite a easy to turn on/off lights:=====================================IfVarAnd( :Skip 32 01 )Transform_Mat( 28.108656 -2.810256 -46.533816 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 )Light( m 4 0.0 0.0 0.0 20 0.0 0.0 FF 192 192 192 0.0 0.0 0.0 )TransformEnd:SkipReturn=====================================But how to make blinking lights?=====================================IfVarAnd( :Skip 32 01 )VarBaseOverride( 000000 )IfVarAnd( :Skip 0282 AAAA )Transform_Mat( 28.108656 -2.810256 -46.533816 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 )Light( m 4 0.0 0.0 0.0 20 0.0 0.0 FF 192 192 192 0.0 0.0 0.0 )TransformEnd:SkipReturn=====================================If I do it this way then lights will blink at very high speed when object is moving. There must be a solution because this problem ise somehow solved in Konotop AFB scenery (by CaptainSim).

Hello,Maybe try this code, it is from my Follow Me car put in dynamic library:

....IfVarRange( :Ret 0030 1 1 );checking, if we should turn lights on...Call32( :FollowR ); FollowMe rightCall32( :FollowL ); FollowMe left:RetReturn... ; Part: FollowMe lamp right:FollowR;IfVarAnd( :Ret13  5fc  8 );used in normal APIIfVarAnd( :Ret13  26 AAAA )RGBLColor( bf 255 0 0 )Dot(	36   119   -78 )Dot(	33   114   -78 )Dot(	38   114   -78 ):Ret13Return;; Part: FollowMe lamp left:FollowL;IfVarAnd( :CNT4  5fc  8 );used in normal APIIfVarAnd( :CNT4  26  AAAA )Return:CNT4RGBLColor( bf 255 0 0 )Dot(   -36   119   -78 )Dot(   -39   114   -78 )Dot(   -34   114   -78 )Return

In calling SCA file I turn on lights using the command SetColor( 0 01 00 )Hope it helps You!Best regards,Goran BrumenFS Slovenija 2002 teamhttp://slovenia.avsim.net

Thanks, that worked fine. By the way - what do you think, will FS9 support dynamic scenery?

Hi,I do not see the reason why shouldn't it. Microsoft did not say anything against that...Best regards,Goran BrumenFS Slovenija 2002 teamhttp://slovenia.avsim.net

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.