Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: SF-Junky on May 31, 2014, 07:09:57 am

Title: Why does the AI always want to take formation?
Post by: SF-Junky on May 31, 2014, 07:09:57 am
If you have a group of ships forming a wing and you give more than one of these ships a single order to fly to a waypoint, all ships that are given the order are forming up, flying into the same direction, even if their destinations lie in opposite directions.

1) Why is this the case?
2) Is there anything to do against that? Because I have a group of convoy ships and I'd like to fly in a single line and head for different waypoints. I tried to help me out by using the waypoints-once SEXP, but it doesn't work. They're still taking their blasted formation around the wing leader. ;)
Title: Re: Why does the AI always want to take formation?
Post by: Lepanto on June 03, 2014, 08:30:38 pm
I don't know the details of the AI code, but it makes sense that ships in a wing would move as a unit for navigation purposes; after all, ships in a wing will be moving and acting together in almost all circumstances.

I think you'll have to dissolve the wing into single ships.
Title: Re: Why does the AI always want to take formation?
Post by: Black Wolf on June 03, 2014, 10:35:03 pm
If you give each ship it's own waypoints once order towards its own, separate waypoint, the wing formation shouldn't occur. Are you sure that each ship has its own waypoint?
Title: Re: Why does the AI always want to take formation?
Post by: SF-Junky on June 04, 2014, 02:42:38 pm
If you give each ship it's own waypoints once order towards its own, separate waypoint, the wing formation shouldn't occur. Are you sure that each ship has its own waypoint?
Yes, of course. I wrote that:
Quote
If you have a group of ships forming a wing and you give more than one of these ships a single order to fly to a waypoint, all ships that are given the order are forming up, flying into the same direction, even if their destinations lie in opposite directions.
;)

Well, I guess I'll just have to live with it.
Title: Re: Why does the AI always want to take formation?
Post by: Admiral MS on June 05, 2014, 01:39:21 pm
I just remembered that I fixed a similar problem some time ago (see this http://scp.indiegames.us/mantis/view.php?id=1496). I'm pretty sure this should fix any formation problems where ships have conflicting waypoint orders. Maybe you can try to use this flag.