Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: InsaneBaron on February 11, 2014, 03:08:09 pm

Title: Landing in fighterbays
Post by: InsaneBaron on February 11, 2014, 03:08:09 pm
Ya, I'm on a roll with the questions today :P

How do you get AI fighters or the player to land in a capship's fighterbay? I know how to launch them, but I'm not sure about landing. (Landing was never done in retail; was it even possible in retail or is it an SCP addition?)
Title: Re: Landing in fighterbays
Post by: Lepanto on February 11, 2014, 03:29:32 pm
For AI fighters, simply set their Departure Location to Docking Bay, and Departure Target to the ship you want the fighters to land in, and trigger their Departure Cue when you want them to land.

For the player, set your last SEXP to end-mission, triggering when the player is a short distance from the fighterbay subsystem of the ship which they're landing on.
Title: Re: Landing in fighterbays
Post by: InsaneBaron on February 11, 2014, 03:35:36 pm
For AI fighters, simply set their Departure Location to Docking Bay, and Departure Target to the ship you want the fighters to land in, and trigger their Departure Cue when you want them to land.

For the player, set your last SEXP to end-mission, triggering when the player is a short distance from the fighterbay subsystem of the ship which they're landing on.

Perfect, thanks!
Title: Re: Landing in fighterbays
Post by: procdrone on February 14, 2014, 02:22:10 pm
That also works when you tell said fighters to depart, if they have landing in the fighterbay set, they move to it at your depart command.
Title: Re: Landing in fighterbays
Post by: 0rph3u5 on February 14, 2014, 02:31:27 pm
Can't confirm this right now, but ships with the "no subspace drive"-flag set also try to depart via a fighterbay if I recall that correctly (but don't put your money this)
Title: Re: Landing in fighterbays
Post by: procdrone on February 15, 2014, 07:52:32 am
Can't confirm this right now, but ships with the "no subspace drive"-flag set also try to depart via a fighterbay if I recall that correctly (but don't put your money this)

Due to the specification of the depart queue, I think this is hardy possible. There are question to arise, which ship and fighterbay does the fighters choose to land on? It is random/friendly/any fighterbay? What if there are more ships with fighterbays in area? I guess it's quite a problem here, so I'd bet it's not possible.
Title: Re: Landing in fighterbays
Post by: Goober5000 on February 26, 2014, 04:38:59 pm
They depart to the bay they're assigned to in the departure cue box, of course.  If they have no fighterbay assigned, then they won't depart.

(This was only very recently fixed though, so you'd need to use a nightly build to get the proper behavior.)