SimConnect_TransmitClientEvent Payload

Is the payload below valid for SimConnect_TransmitClientEvent? const char*
payload =
“POSITION=-5.713197,52.010039,0,ROTATION=0.0,0.0,0.0,TYPE=BOAT,CMD=CREATE_OBJECT,CALLSIGN=TEST,AIRLINE=0,FLIGHTNO=”;
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, EVENT_ID_CREATE_OBJECT,
payloadData, GROUP_ID_OBJECTS, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);

Hey “mseeds”, As the SDK reference shows, the parameter for the “payload” is a
“DWORD”, which is an “unsigned long”, not a string. If you want to create a
boat you should use “SimConnect_AICreateSimulatedObject” and pass a
“SIMCONNECT_DATA_INITPOSITION” struct. As a boat, the object will not have a
callsign, airline, or flight number. Cheers, Bert Laverman