plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


Idea

DA40CGDFQ avatar image
DA40CGDFQ suggested DA40CGDFQ commented

SimConnect_AICreateSimulatedObject for AI and User Aircraft

Currently only Dynamic SimObjects are allowed (per the SDK) to be created using SimConnect_AICreateSimulatedObject. FSX and P3D allow Aircraft SimObjects to be created this way and waypoints added. I currently have a program that an create animals, but exception errors on creating Aircraft.

szContainerTitle

Null-terminated string containing the container title. The container title is case-sensitive and can be found in the sim.cfg file.

NOTE: Only Dynamic SimObjects can receive "AI Waypoint" data via SimConnect_SetDataOnSimObject.

String
simconnect
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

3 Comments

·
Steeler avatar image
Steeler commented

Your description is totally confusing: are you suggesting a new idea (which is what exactly), do you have a problem with assigning waypoints to non-dynamic objects, or are you simply struggling with creating aircrafts in general?

You probably want to refine some of your statements and elaborate on what exactly your new idea is, e.g. "make it possible to assign waypoints to elephants" or whatever ;)

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

DA40CGDFQ avatar image
DA40CGDFQ commented

The ability to add aircraft AI with SimConnect_AICreateSimulatedObject is non-existent in MSFS, However it works in FSX and P3D, So I would like to be able to add Aircraft AI via the SimConnect_AICreateSimulatedObject function per the AI_Waypoints example code in FSX/P3D.

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Kaiii3 avatar image Kaiii3 commented ·

why not use "SimConnect_AICreateNonATCAircraft" to add the AI Aircraft? I would only use SimConnect_AICreateSimulatedObject when adding stuff like vehicles, ships or so since the descriptions is clear on it: The SimConnect_AICreateSimulatedObject function is used to create AI controlled objects other than aircraft.

0 Likes 0 ·
DA40CGDFQ avatar image
DA40CGDFQ commented

Working now.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.