• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Taxilights on during daytime via Nav2 var

Messages
11
I wish to lit up my taxiline lights also at day, with nav2 command (117.00 freq)
Is that code correct?!?!


; Centerline Lights
Area( 5 41:48.19545 012:16.09544 10 )
LayerCall( :Taglayer 20 )
Jump( : )
:Taglayer
RefPoint( 2 :TagPoly .1 41:48.19545 012:16.09544 E= 4.2672 V1= 100000 V2= 8430 )
IfVarRange( :TagRoad 028c 2 4 )
Jump( :TagPoly1 )
:TagRoad
IfVarAnd( :TagPoly 07c2 1700 )
Jump( :TagPoly1 )
:TagPoly1
LineColor( 10 F0 )
Dot( -6050 0 -3307 ) ; 1:1
Dot( -5869 0 -3240 ) ; 1:2
Dot( -5688 0 -3174 ) ; 1:3

....



this was the original code

; Centerline Lights
Area( 5 41:48.19545 012:16.09544 10 )
LayerCall( :Taglayer 20 )
Jump( : )
:Taglayer
RefPoint( 2 :TagPoly .1 41:48.19545 012:16.09544 E= 4.2672 V1= 100000 V2= 8430 )
IfVarAnd( :TagPoly1 028c 0001 )
:TagRoad
Jump( :TagPoly )
:TagPoly1
LineColor( 10 F0 )
Dot( -6050 0 -3307 ) ; 1:1
Dot( -5869 0 -3240 ) ; 1:2
Dot( -5688 0 -3174 ) ; 1:3
Dot( -5507 0 -3107 ) ; 1:4



thanks
alex
 
Last edited:
Messages
611
Country
switzerland
Ciao Alex!

Ahhh, I suppose for the ISD Roma scenery :D
Well, I think the frequency variables work ok with the ifVarRange command
(just set the minvalue and maxvalue to the same)

Here a snippet of my code using the COM1-Freq (7BE) 118.65

Code:
IfVarRange( :dontdraw 7BE 0x[B]1865[/B] 0x[B]1865[/B])
Jump( :draw)

Note the special format of the value: 0x indicates that it is a hex-value.
And also the labelling is different. I marked them with dontdraw and draw...

The rest is ok in my eyes, just change that special ifVarRange check.


Regards
Jeff


Code:
Area( 5 41:48.19545 012:16.09544 10 )
LayerCall( :Taglayer 20 )
Jump( : )
:Taglayer
RefPoint( 2 :TagPoly .1 41:48.19545 012:16.09544 E= 4.2672 V1= 100000 V2= 8430 )
IfVarRange( :TagRoad 028c 2 4 )
Jump( :TagPoly1 )
:TagRoad
IfVarRange( :TagPoly 7C2 0x1700 0x1700)
:TagPoly1
LineColor( 10 F0 )
Dot( -6050 0 -3307 ) ; 1:1
Dot( -5869 0 -3240 ) ; 1:2
Dot( -5688 0 -3174 ) ; 1:3
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,412
Country
netherlands
Hi Allessandro,

Yes, the structure of the code looks fine. I think this should work.

Please note the 0x in front of the frequency in the example above, that is important :).
 
Top