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

FSXA An idea/wish

euroastar350

Resource contributor
Messages
863
Country
us-delaware
Hi Arno,

Since most of the newer freeware and payware models nowadays have flashing beacons/strobes controlled by XML, is there a way to implement an editor to edit and preview such code?

I have 2 scripts that works perfectly for the newer LED beacons found on newer generation aircraft, but would love to create the 3 flash strobe lights found on GA aircraft. I've tried FX files, but the results are less then satisfactory and XML controlled strobes seem to work very well.

Just a wish:cool:
 
Hi,

I don't know how those xml flashing lights are made. But if I would, I could probably add support for them.
 
Arno,

Here is an example script which is based on a flashing beacon:

Code:
<PartInfo>
    <Name>B206_Beacon</Name>
    <Visibility>
      <Parameter>
        <Code>(A:LIGHT Beacon,bool) 0 &gt; (A:ELECTRICAL MASTER BATTERY,bool)
          and (P:ABSOLUTE TIME,seconds) 1.4 % 0.7 &gt; ! * if{ 1 } els{ 0 } }
          </Code>
      </Parameter>
    </Visibility>
</PartInfo>

Basically by adjusting the percentage and seconds of the flashing light, one can get a desired light effect, which is what I am after with the 3 flash strobe lights, but to no avail. The light itself can be a static FX based light (nav light) or a modeled light.
 
Last edited:
Here is an example of a "double-flash" strobe light. It uses two timers to affect the effect:
Code:
    <!-- STROBE LIGHT FLASHER -->
    (A:LIGHT STROBE,bool)
    (A:ELECTRICAL MASTER BATTERY,bool)
    and
    if{
         (P:Absolute time,seconds) 2 % 0.4 > !
         if{
              (P:Absolute time,seconds) 0.2 % 0.1 > !
              if{ 1 (>L:B737_Strobe,bool) }
              els{ 0 (>L:B737_Strobe,bool) }
           }
    }
I suspect that one could nest yet another timer into the mix to create a triple-flash effect.
 
Last edited:
Hi,

So would you apply this to an effect (fx file) or just to the geometry of the light in general?
 
Hi Arno,

This actually works for both light methods, I am using the geometry setup for my lights.

Thank you Bill for the script. At least I got an answer after asking multiple times :P
 
Back
Top