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

Common waypoints for multiple AI planes

Messages
65
Country
germany
Hi folks,

I have managed to get AI aircraft moving along the path I specify, but have not found a way to specify waypoints that several AI aircraft can use. (E.g. an approach path to a runway).

Does one of the cracks here know how to do it? And are you willing to share your wisdom?

Hope the question hasn't been answered before. I didn't find a thread here...

Robin <><
 
Robin, I'm not sure at the moment (quite some time since I did this last), but can't you assign waypoint-actions to more than one aircraft?
If this turns out to be impossible simply duplicate the action and assign it to the next AI aircraft.
This might even be easier to do outside OPT and in the XML directly. But don't forget to use unique GUIDs.
 
Robin, I'm not sure at the moment (quite some time since I did this last), but can't you assign waypoint-actions to more than one aircraft?

I don't see how, because every WaypointActivationAction has an ObjectReference. This, of course, can take several AI objects, but if I want to activate them at different times it won't be possible.

If this turns out to be impossible simply duplicate the action and assign it to the next AI aircraft.
This might even be easier to do outside OPT and in the XML directly. But don't forget to use unique GUIDs.

I did it that way now. I don't dare to think of what will happen, when I need to relocate one of the waypoints. :cool:
And: It's no problem to do it in OPT.

Thanks,
Robin <><
 
There are some reasons to work with the XML though.
I don't dare to think of what will happen, when I need to relocate one of the waypoints.
This, for example, is much easier done in the XML. ;)
 
Copied waypoints share the same UID???

I'm really puzzled at what happened. :confused: I'll try my best to explain and I hope that someone can give me a clue... If you want to skip the details and read the questions first, scroll down to the "********" line :)

I added some AI waypoints by a ActivateWaypointsAction. Then I copied (like Horst18519 proposed) the Action and assigned another ObjectReference to the Action to use the same waypoints with another AI plane. Then I noticed that the following planes were behaving strangely. I saw that the Waypoints all were named "Waypoint 1", "Waypoint 2", etc. for all AI planes. So I decided to rename them. This didn't help and as I clicked through my OPT dialog, I noticed something very strange:

If I select "act_wp_ai1_wp1" (the ActivateWaypointsAction for AI plane 1) in the ACTION_OBJECTS, I see that under "References" there are some waypoints, but not the ones for AI1, but for AI4. The same for AI2 and AI3.

Then I checked the UIDs and found out that they are identical for all AI planes. I.e.: All "Waypoint 1" waypoints (regardless of how I named them) have the same UID, all "Waypoint 2" waypoints have the same UID (although different from the WP1 UID, of course)... :banghead:

********

So here the questions: Is this so by design? I mean, I wanted common waypoints and thought it was not possible. Then I created (what I thought were) independent waypoints and got identical ones...

But how do I properly use them?

The waypoints fill lines and lines in the WAYPOINTS section - for each AI plane, but in fact the waypoints are the same... :confused: VERY confusing...

Can someone give me a clue?

Tia,
Robin <><
 
There are some small bugs in OPT regarding waypoints. For example clicking on wapoints it might happen that a wrong AI aircraft is linked to them - even it it's linked to another AI aircraft.
Anyway, just ignore those things and take a look at the mission as it runs: the waypoints should be linked to the aircraft you assigned in the first place.

A bit confusing, even now that I try to explain it... :D

Getting to the point: does the mission work as expected now?
 
:) I stopped copying and have separate waypoints for each AI plane.

And, yes, it works, except for: See new thread about effects. ;)

Robin <><
 
Back
Top