| SimObject Functions | |
| General SimObject Function Name | |
| AI Object Specific Function Name | |
| Attach Sim Specific Function Name | |
| Attach Weapon Specific Function Name | |
| External Sim Specific Function Name |
| General SimObject Function Name | |
SetDataOnSimObject(DefineID as [Enum], ObjectID as UInteger, Flags as SIMCONNECT_DATA_SET_FLAG, pDataSet as Object)Used to make changes to the data properties of an object. | |
ChangeVehicle(VehicleName as String)Used to change the user's vehicle. | |
RequestAttachPointData(RequestID as [Enum], ObjectID as UInteger, szAttachPointName as String, bRequestWorldCoordinates as Boolean)Used to request attach point positions and orientations from a simulation object. | |
RequestDataOnSimObject(RequestID as [Enum], DefineID as [Enum], ObjectID as UInteger, Period as SIMCONNECT_PERIOD, Flags as SIMCONNECT_DATA_REQUEST_FLAG, Origin as UInteger, Interval as UInteger, Limit as UInteger)Used to request when the SimConnect client is to receive data values for a specific object. | |
RequestDataOnSimObjectType(RequestID as [Enum], DefineID as [Enum], dwRadiusMeters as UInteger, Type as SIMCONNECT_SIMOBJECT_TYPE)Used to retrieve information about simulation objects of a given type that are within a specified radius of the user's vehicle. |
| AI Object Specific Function Name | |
AICreateEnrouteATCAircraft(szContainerTitle as String, szTailNumber as String, FlightNumber as Integer, szFlightPath as String, dFlightPlanPosition as Double, bTouchAndGo as Boolean, RequestID as [Enum]) Used to create an AI controlled aircraft that is about to start or is already underway on its flight plan. | |
AICreateEnrouteATCAircraftW(szContainerTitle as String, szTailNumber as String, FlightNumber as Integer, szFlightPath as String, dFlightPlanPosition as Double, bTouchAndGo as Boolean, RequestID as [Enum]) Used to create an AI controlled aircraft that is about to start or is already underway on its flight plan. This version of the functions supports unicode file paths, titles, tail numbers, and flight plans. | |
AICreateNonATCAircraft(szContainerTitle as String, szTailNumber as String, InitPos as SIMCONNECT_DATA_INITPOSITION)Used to create an aircraft that is not flying under ATC control (so is typically flying under VFR rules). | |
AICreateParkedATCAircraft(szContainerTitle as String, szTailNumber as String, szAirportID as String, RequestID as [Enum])Used to create an AI controlled aircraft that is currently parked and does not have a flight plan. | |
AICreateSimulatedObject(szContainerTitle as String, InitPos as SIMCONNECT_DATA_INITPOSITION, RequestID as [Enum]) Used to create AI controlled objects other than aircraft. | |
AICreateSimulatedObjectEx(szContainerTitle as String, InitPos as SIMCONNECT_DATA_INITPOSITION, RequestID as [Enum])Used to create AI controlled objects other than aircraft. Extended for use withdisabled simulations and Owned objects | |
AICreateObjectWithExternalSim(szContainerTitle as String, InitPos as SIMCONNECT_DATA_INITPOSITION, RequestID as [Enum], guidExternalSimID as ValueType, szExternalSimParamas as String, dwExternalSimVarCount as UInteger)Description here | |
AIReleaseControl(Object as UInteger, RequestID as [Enum])Used to remove any object created by the client using one of the SimConnect AI creation functions. | |
AIReleaseControlEx(Object as UInteger, RequestID as [Enum])Description here | |
AISetAircraftFlightPlan(Object as UInteger, szFlightPath as String, RequestID as [Enum])Used to set or change the flight plan of an AI controlled aircraft. | |
AISetAircraftFlightPlanW(Object as UInteger, szFlightPath as String, RequestID as [Enum]) Used to set or change the flight plan of an AI controlled aircraft. This version of the function supports unicode file paths. | |
AISetGroundClamp(Object as UInteger, bClamp as Boolean)Used to enable/disable ground clamping on a specific SimConnect owned SimObject. |
| Attach Sim Specific Function Name | |
AttachObjectToSimObject(dwObjectID as UInteger, vecOff1 as SIMCONNECT_DATA_XYZ, rotOff1 as SIMCONNECT_DATA_PBH, szContainerTitle as String, vecOff2 as SIMCONNECT_DATA_XYZ, rotOff2 as SIMCONNECT_DATA_PBH, RequestID as [Enum])Used to create a SimObject and attach it to an existing SimObject. | |
AttachSimObjectToSimObject(dwObjectID1 as UInteger, vecOff1 as SIMCONNECT_DATA_XYZ, rotOff1 as SIMCONNECT_DATA_PBH, dwObjectID2 as UInteger, vecOff2 as SIMCONNECT_DATA_XYZ, rotOff2 as SIMCONNECT_DATA_PBH) Used to attach an existing SimObject to another existing SimObject. | |
ReleaseSimObjectFromSimObject(dwObject1 as UInteger, dwObject2 as UInteger)Used to release a SimObject from another SimObject. |
| Attach Weapon Specific Function Name | |
AttachWeaponToObject(szContainerTitle as String, dwObjectID as [Enum], HardpointIndex as Integer, numOfRounds as Integer)Used to create a Weapon and attach it to an existing SimObject. | |
ClearWeapons(dwObjectID as Integer)Used to remove all Weapons from a SimObject. |
| External Sim Specific Function Name | |
RegisterExternalSim(guidExternalSim as ValueType, CallbackMask as SIMCONNECT_EXTERNAL_SIM_CALLBACK_FLAG, DefineID as [Enum])Used to register this client as an external sim provider. | |
UnregisterExternalSim(guidExternalSim as ValueType)Used to unregister this client as an external sim provider. | |
RegisterExternalSecondarySim(guidExternalSecondarySim as ValueType, CallbackMask as SIMCONNECT_EXTERNAL_SIM_CALLBACK_FLAG, DefineID as [Enum])Used to register this client as an external secondary sim provider. | |
UnregisterExternalSecondarySim(guidExternalSim as ValueType)Used to unregister this client as an external secondary sim provider. | |
AttachExternalSecondarySimToSimObject(dwObjectID as UInteger, guidExternalSecondarySim as ValueType, szExternalSimParams as String, dwExternalSimVarCount as UInteger)Used to attach an External Secondary Sim to an existing SimObject. | |
DetachExternalSecondarySimFromSimObject(dwObjectID as UInteger, guidExternalSecondarySim as ValueType)Used to detach an External Secondary Sim from an existing SimObject. | |
AICreateObjectWithExternalSim(szContainerTitle as String, InitPos as SIMCONNECT_DATA_INITPOSITION, RequestID as [Enum], guidExternalSimID as ValueType, szExternalSimParams as String, dwExternalSimVarCount as UInteger)Used to create an AI object, overriding the sim to use a specific External Sim instead. | |
ChangeVehicleWithExternalSim(szContainerTitle as String, guidExternalSimID as ValueType, szExternalSimParams as String, dwExternalSimVarCount as UInteger) Used to change the user's vehicle and override the sim to use a specific ExternalSim instead. |