I wanted to ask if there is a way to create vehicels dynamicly. I want to write a small program that generates random car crashes, ambulances etc. For the H145 or other helicopters. I want to make it possible to have random emergencies.
Yes, that should be doable, keyword: “AI Object”.
This one should get you started:
Quote: “The SimConnect_AICreateSimulatedObject function is used to create AI controlled objects other than aircraft.”
Of course you need to know the “container title”, but you should be able to figure it out by looking at the various “SimObject” definitions in the package folder… (I guess)
UPDATE: Since you specifically mentioned cars: the ones that you see driving on roads (and through rivers and under bridges… ;)) are pure “graphics effects”. If I had to guess they are generated by “GPU shader programs” (only). Or in other words: those cars (the ones with a low-polygon count) you can’t instantiate with the above SimConnect API call.
You need a “proper SimObject” (an asset as stored in the “packages” folder).
Thank you for your good and detailed answer! I will look into that, but have also seen that there is an Project called HeRo that makes exactly what I wanted to do
But I wanted to get better in programming stuff for msfs2020 so I think that is a good place to test some things. I was just confused about the SimulatedObject part. But now it kinda makes sense. Thanks again!