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

XML Animation help...

Messages
4
Country
newzealand
I am an absolute newbie at XML animation, and I need a little help;

I have built a simple 707 Tanker model with basic animation (gear, flaps and engine fans) but want to try something a little different..

What I want to do is have the gear animation inhibited above 10,000ft, as I have the drogues extending linked with the gear (so that the model also works in Multiplayer)
So.. I just need some help adding the altitude parameter into the gear animation, if that is even possible?

SeanG
 
You are over-thinking this.

Why not use another standard key event on the drogues?

That way you can operate both gear and drogues separately.

Ps, maybe we can have a look at this old bird?? :)
 
Last edited:
You are over-thinking this.

Why not use another standard key event on the drogues?

That way you can operate both gear and drogues separately.

Ps, maybe we can have a look at this old bird?? :)

Hi,
The big thing about the question is *stopping* the gear from animating when it's flying as an AI model. The other option is to have a model for this one purpose with all the animations frozen in the "in-flight" position. Just means if you happened to see it on the ground it would hover :) Not the end of the world given my purposes..

You are welcome to see it, but it is _old_, I think I was given the original source file back in FS98 days, and it's kinda followed me along ever since... it's not that pretty, and I now have the source files for the "Elvis" models, so If I am going to progress this idea too much further I'll probably modify his *far better* model.

To give you an idea of what I want this thing to do; It'll be a cameo role in a scenario I am putting together to play with in my TA-4k Simpit. I am putting together a bunch of "scenarios" which will include tankers just orbitting (actually doing IFR circuits at an invisible airport at 15,000ft), then you can fly my 'pit up to the tanker track and play at tanking.

Hope that gives some perspective on what I'm doing ;-)

SeanG
 
I see.

What I would have done is just drop the animation of the drogue and just use a visibility parameter on the drogue.
So the drogue is always extended, but only visible over a certain altitude.

Is it FS9 or FSX?
 
for FS9/makeMDL.parts.xml

Code:
<part>
	<name>XXXX</name>
      <AnimLength>100</AnimLength>
	<animation>
		<parameter>
			<code>
                       (A:PLANE ALTITUDE, feet) 10000 &gt;
                           if{ 100 } els{ -500 }
        		</code>
                        <lag>25</lag>
		</parameter>
	</animation>
</part>

els{ - 500 } delayed the start of the animation.
 
for FS9/makeMDL.parts.xml

Code:
<part>
	<name>XXXX</name>
      <AnimLength>100</AnimLength>
	<animation>
		<parameter>
			<code>
                       (A:PLANE ALTITUDE, feet) 10000 &gt;
                           if{ 100 } els{ -500 }
        		</code>
                        <lag>25</lag>
		</parameter>
	</animation>
</part>

els{ - 500 } delayed the start of the animation.

Ok, so as read that it will start the animation at 10,000ft and above? How would I make it work so that it animates at *less* than 10,000ft? (Sorry for the complete noob questions!)
..and.. could I add another variable to the mix and include "gear down"? So it would be "below 10,000ft AND gear down"

I see.

What I would have done is just drop the animation of the drogue and just use a visibility parameter on the drogue.
So the drogue is always extended, but only visible over a certain altitude.

Is it FS9 or FSX?

It's for FS9.
The reason I want to stay away from custom vis type controls is for the multiplayer aspect of the model. Those don't convert over from AI to the multiplayer environment. Hence I'm using "gear" as the primary trigger.

Thanks so much for your help guys.... this custom animation stuff has got me really excited, having never used anything but the stock stuff before!

Sean
 
You can't have it both ways - I know why you don't want custom animations, but then you are asking for a custom animation! Not possible, AFIAK.

There are a very limited number of animations displayed in multiplayer. Perhaps you can use one of those to animate your drogues? Or just use a visiblity tag vs altitude as Zeiten suggests?
 
Back
Top