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

Change Object Type

Messages
194
Country
unitedstates
I am trying to change from the Cessna 206 to the Maule on Skis in my mission...it appears I have everything right except the aircraft ID.

The tutorial says:

ObjectType: The ID of the new object.

from the aircraft.cfg?
or the name I gave it

Which blankety-blank ID are they talking about? I looked at the samples, but none used the Maule.

<SimMission.ChangeObjectTypeAction InstanceId="{A5541475-4900-470C-8D2C-AF2424B85E67}">
<Descr>COT_Maule</Descr>
<ObjectType> Maule M7 260C Ski</ObjectType>
</SimMission.ChangeObjectTypeAction>
 
Hi Horst:

Here's the code from the xml for the AI_Maule:

<SimContain.Container InstanceId="{3FE8476F-9634-42D5-B4AA-90D186D9EAE6}">
<Descr>Maule M7 260C Ski</Descr>
<WorldPosition>S41° 8' 49.72",W71° 9' 46.74",+002775.64</WorldPosition>
<Orientation>0.000,0.000,295.000</Orientation>
<ContainerTitle>Maule M7 260C Ski</ContainerTitle>
<ContainerID>0</ContainerID>
<IsOnGround>True</IsOnGround>
<AIType>Airplane</AIType>
<AircraftAI>
</AircraftAI>
</SimContain.Container>

I have the Container Title and the description the same as the object type in the Change Object Type Action. Is that not correct? I will try it with another plane...maybe for some reason the problem is unique to the Maule?
 
I think you have to change the CointainerID:
<ContainerID>1</ContainerID>
Then you can change to this AI-object by using the changeObjectType to "1".
 
Perhaps it is another problem altogether. I checked the sample mission...it uses "0" for container id for both the DC-3 and Cub. However, maybe I don't have my trigger right. In the sample, they deactivate the AI aircraft and activate the change object type. It happens when they enter the "dc-3 area" or "piper area". My initialization failure maybe wasn't resulting from the name, but from not deactivating the AI_Maule.

I'll report back.


And thank you Horst for the help! It sure is nice to have someone to guide!
 
You're welcome.

This option though is one that I didn't try myself yet. Maybe I can do it at the weekend. I have some nice ideas what one can do with that option. :D
 
OK, the SDK is wrong actually. :D

You have to insert the name of the aircraft, which is in your case "Maule M7 260C Ski". The deactivation of the AI seems to be important, too.
I just did it in a new mission, exactly the way they did it in tut4 - and it worked very well.
 
Yes! Thanks, Horst!

I finally got it to work. Perhaps it is that the deactivation of the AI plane must preceed the Change Object Type. I am still not sure.

To summarize (for others):

1. Place an AI plane
2. Create an area definition around the plane
3. Create an Object Activation Action that will change the AI to false, and references the AI.
4. Create a Change Object Type..the ID is the same name as the AI Plane.
5. Create a Proximity trigger that references the area around the AI plane, and triggers the Object Activation Action and the Change Object Type Action.
 
Good to hear that! :)

And thanks for the nice summary. Will be helpful for others for sure. ;)
 
Back
Top