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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...