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

MSFS24 Animation Trigger

Messages
24
Country
spain
Hello, I need a little help finding why the expressions I'm putting in won't work to trigger the animation. I made an animated hangar door and placed this trigger to activate it: <ANIM_CODE>(L:LIGHTING_TAXI_1,Bool) 1 == if{ 100 } els{ 0 }</ANIM_CODE> on the XML file, and it works. The issue I have is that it only works with certain planes that have that exact expression. If it doesn't have it, then the animation won't trigger. What I want to do is put an expression that all airplanes have. I was thinking of a transponder code or a radio frequency. I tried hiding the yoke, but it turns out there are more than one expression that hides the yoke. Another thing that's happening is that MSFS 2024 gives variable types that I've never seen before, like (L:LIGHTING_TAXI_1,Bool) 1 == if{ 100 } els{ 0 }. When I test it with SpadNext, This one uses a "B" instead of the "L" variable type But if I put the "B" variable type at the beginning of the expression, like (B:LIGHTING_TAXI_1,Bool), it won't work, so I don't know why this is happening.
 
Last edited:
L:vars and E:vars are the only one that are shared among all the game
That's why the hangar (a scenery Simobject) can use them


But as you have already noticed, the L:var are custom variables, it the creator of the aircraft you are flying hasn't used them in its plane, you have no way to trigger them from that plane, unless you mod that plane

Xpdr and Freq are only available to the


A universal solution must be custom created, either via an external Simconnect application, a efb application, wasm or in-game panel
 
Hello mamu, thanks for your answer, I am actually suscribed to your discord server, and thanks to your tutorials I've learning a lot on animations. so then non of the A variables would trigger the doors? I saw one of your videos some time ago where hangar doors open as you pass near them, in that video you said you were going to make a tutorial on how to acomplish that, Did you made that tutorial? I guess you use some kind of proximity or area trigger right? back in the day I did some missions for FSX and P3D where these are used so I kind of know how they work, my question is how do you apply them to a scenery sim object?
 
Hello mamu, thanks for your answer, I am actually suscribed to your discord server, and thanks to your tutorials I've learning a lot on animations. so then non of the A variables would trigger the doors? I saw one of your videos some time ago where hangar doors open as you pass near them, in that video you said you were going to make a tutorial on how to acomplish that, Did you made that tutorial? I guess you use some kind of proximity or area trigger right? back in the day I did some missions for FSX and P3D where these are used so I kind of know how they work, my question is how do you apply them to a scenery sim object?
I'm a bit lazy with tutorials lately

About the proximity trigger (and the whole scripting thing) the p3d/fsx documentation is way more informative than the msfs, and there are pretty much no changes
You can find my sample for the proximity trigger here, with all the comments in the XML it shouldn't be difficult to replicate

Post in thread 'Triggering Hangar door animation in SimObject by distance?' https://www.fsdeveloper.com/forum/t...n-in-simobject-by-distance.451392/post-913422
 
Back
Top