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

3D-objects on/off

Messages
56
Country
germany
Hi!

Now it's been successful with my day/night-texture-request,
I can't get enough! Thanks again Arno!
The other question, which comes up: how can I switch 3d-objects
on and off depending on seasons? For example: to switch snow-cars
in winter on sceneries.
For those who not know, I am using FS98!

Thanks!
 
Hi,

You would have to use the IfVarRange command for that as well. Place the check at the top of your object and just to the end of the object if it fails. You need to use the 6F8 variable in this case.
 
Hi Arno,

I can't find an option to set all other seasons off except winter.
I have already taken your example for seasons and deleted all texture-brackets.
Then I left all seasons except the winter-sentence:

PHP:
; ----------------------------------------
; Object # 57, offset: 0xE39A size: 3700 bytes (0x0E74) 
;; Lat: 0FFA61E89h Lon: 0CD9F3DCAh
; ----------------------------------------
Area( 5 S53:00:16.31 W070:50:38.44 22 )
              IfVarRange( :nowinter 6F8 0 0 )
              Jump( :seasonend )
              :nowinter
              IfVarRange( :nospring 6F8 1 1 )
              Jump( :seasonend )
              :nospring
              :seasonend
	IfVarRange( :  0346 4 4 )
	PerspectiveCall( :L00E3B8 )
	Jump( : )

Is this one okay?
P.S. The scenery is based at Chile, that's why I left the winter-option in there.

Thanks!
 
Hi,

Try something like this:

Code:
; ----------------------------------------
; Object # 57, offset: 0xE39A size: 3700 bytes (0x0E74) 
;; Lat: 0FFA61E89h Lon: 0CD9F3DCAh
; ----------------------------------------
Area( 5 S53:00:16.31 W070:50:38.44 22 )
    IfVarRange( : 6F8 2 2 )
    IfVarRange( :  0346 4 4 )
    PerspectiveCall( :L00E3B8 )
    Jump( : )

This will only show the object when the season value is equal to 2 (which is summer on the northern hemisphere, so should be winter in Chile). If the check fails, the code will jump to the label : which means to the EndA command right away.
 
WOW, it works!!! Thanks! How much more can I ask you...I think
you could describe everything! :) :)
The command is really simple, I couldn't find it by myself :(
 
Back
Top