Jump to content
Sign in to follow this  
Guest gorchi

Blinking lights in dynamic object libraries

Recommended Posts

Guest

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).

Share this post


Link to post
Share on other sites
Guest gorchi

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites
Guest gorchi

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...