May 1, 200323 yr 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).
May 1, 200323 yr 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
May 2, 200323 yr Thanks, that worked fine. By the way - what do you think, will FS9 support dynamic scenery?
May 2, 200323 yr 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