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

How to trigger smoke in AI plane

Messages
163
Country
luxembourg
Hello all,

Since you all "play" with AI traffic hopefully somebody could help me with this:

Is there any way how to trigger a smoke effect for the default FSX Extra 300 used as an AI traffic once it descends below a certain altitude?

If I am on a wrong forum, any suggestions where to ask this question?

Thank you
Milan
 
Hi,

Well, the best forum for that question, i think would be the "SimConnect" forum which is a bit above of this one, hehehe. Anyways i will tell you that you can do that with these:


1) TRIGGERING THE EFFECT FROM CODE:

Go to the "Events IDs" section in your FSX SDK, and checkout the "SMOKE_TOGGLE" key, which allows you to turn on and off the smoke system in the AI aircraft. Now, you will need a function to transmit that event to a specified AI aircraft, for do that you need to take a look at the "SimConnect_TransmitClientEvent" function in your FSX SDK, which basicly lets you specify the target AI aircraft's ID, and the event to send, which is the "SMOKE_TOGGLE". This is a small sample code given in the FSX SDK:

Code:
// 2. Setting an event value in Flight Simulator
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_DME, "DME_SELECT");
// Set the selected DME to 2
SimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_DME, 2, SIMCONNECT_GROUP_PRIORITY_DEFAULT, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);

In that sample it's used the "DME_SELECT" event and sent to the aircraft using the "SimConnect_TransmitClientEvent" function.


2) TRIGGERING THE EFFECT USING TRAFFIC TOOLBOX:

In your FSX SDK, go to the "Traffic ToolBox" section, and check it out. The "Send Key Event..." option, does exactly what im decribing above, the only difference is that you dont need to make a program.


Hope this helps...


Best Regards,


Manuel
 
Last edited:
Back
Top