• 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 Visibility condition in AI model

Yes the g:var 1-9, I have tried to understand how they work. I'm trying to create an animation that works in FSX to allow the flaps to be deployed after pushback. I'm sure that I will need G:var variables; I've seen Erez Werber animations and some others and seems to me that they are a bit complex, and that I will need to use g:var at some point, so the question. No a clue how thy work or how to read them as you read some of he code above...

There is a place with some info called aerodinamika.com but is impossible to access it
 
FFDS is basically dead in the water by now.

And as far as I know, the AI engine utilizes and sets the standard flap animation tags, so there's no need to write custom code.
 
The flaps of AI aircraft do not normally deploy on takeoff (only landing) so a custom animation is required. I use the landing lights for that, but that means they only extend their flaps just before taking the runway, not taxiing out.

Here is my FS2004 animation, using 40% deployment for takeoff:

Code:
<part>
  <name>ai_flap_vis</name> <!-- for AI aircraft  - flap is visible all the time, sets t/o flap to 40% -->
      <animation>
       <Parameter>
       <Code>  (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) 0 &gt; if{ (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) } els{ (A:LIGHT LANDING, bool) (A:GEAR CENTER POSITION, percent) 99 &gt; &amp;&amp; if{ 40 } els{ 0 } } </Code>
        <Lag>5</Lag>
       </Parameter>
    </animation>
</part>

The flaps will act as normal flaps if any flap is deployed (i.e. during landing). If not, then it checks if the landing lights are on and the gear is down. If so, it lowers the flaps to keyframe 40. When the gear is raised after takeoff, the flaps also come up.

If you find something that allows the flaps to be down during taxi out, let us know. :)
 
Tom

I've been messing around, and the last test has been with

Code:
  <Animation name="l_r_my_flaps" guid="9C99F8AA-5994-4633-8418-70E001B7F699" length="200" type="Sim" typeParam2="l_r_my_flapS" typeParam="AutoPlay" />
  <PartInfo>
    <Name>l_r_my_flaps</Name>
    <AnimLength>200</AnimLength>
    <Animation>
      <Parameter>
        <Code>#5#
    (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) 0 &gt; if{ (A:TRAILING EDGE FLAPS LEFT PERCENT, percent) } els{ (A:LIGHT NAV, bool) (A:GEAR CENTER POSITION, percent) 99 &gt; &amp;&amp; if{ 40 } els{ 0 } }
        </Code>
      </Parameter>
    </Animation>
  </PartInfo>

Obviously, no success at all, I mean the flaps were never deployed during taxi, not even during take off.

Your code was tested in FSX?

Cheers
 
Hi,

As I said, it is FS2004 code.

And I work *almost* exclusively in FS9. I did create a classic gas truck that trundles around my FSX airports. :)
 
Back
Top