Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Black Wolf on July 12, 2004, 01:15:18 pm

Title: FRED help - Even in the right forum this time.
Post by: Black Wolf on July 12, 2004, 01:15:18 pm
OK, here's the thing. I have a wing of Elysiums. Let's call them Lambda... for arguments sake. Lambda are heading for a node about 10 kms away. I currently have a setup whereby if they take too much damage (and they're too far from the node to make the distance), they head back to the installation they were launched from, going in via the fighterbay. This was relatively easy using the docking bay drop down thing in the wings departure cue.

The problem was, I forgot to take into account the fact that they might actually make it to the node, and need to use there subspace drives. Unfortunately, as far as I know, V didn't think of that either, as I have no idea as to how of even if I might be able to get them to jump out.

I'm using FSO, so if it's impossible, I'll mess with the subspace effect sexp and just pretend to have them jump out, but I'd much rather a way to switch between docking bay and subspace exits on the fly... if I can.
Title: FRED help - Even in the right forum this time.
Post by: Blaise Russel on July 12, 2004, 02:02:42 pm
add-goal ai-warp-out?
Title: FRED help - Even in the right forum this time.
Post by: karajorma on July 12, 2004, 02:20:13 pm
Blaise is correct. :) I think I've actually used it in a mission similar to the one you have there.
Title: FRED help - Even in the right forum this time.
Post by: Black Wolf on July 13, 2004, 10:13:53 pm
Tried it. The ship heads right back for the docking bay.
Title: FRED help - Even in the right forum this time.
Post by: karajorma on July 14, 2004, 05:14:46 am
Really? That's something of a surprise. I was sure I'd done something similar once before. I'll have to look at my old missions.

I was wondering why you were asking such a simple question :)

Ai-Warpout is a little different from the departure cue (for instance a disabled ship won't jump out using it). I guess it must always use the destination in the departure cue though.
Title: FRED help - Even in the right forum this time.
Post by: Black Wolf on July 14, 2004, 07:57:58 am
Quote
Originally posted by karajorma

Ai-Warpout is a little different from the departure cue (for instance a disabled ship won't jump out using it).


That's actually useful to know, so even if there isn't a solution, the thread hasn't been a total waste :)
Title: FRED help - Even in the right forum this time.
Post by: Goober5000 on July 14, 2004, 08:06:48 am
There's a difference between ai-warp-out and ai-warp.  The former triggers the departure cue, while the latter actually causes the ship to start warping, even if the departure cue is false or the ship is disabled.
Title: FRED help - Even in the right forum this time.
Post by: karajorma on July 14, 2004, 10:58:40 am
ai-warp? :wtf: I've only ever seen ai-warp-out.
Title: FRED help - Even in the right forum this time.
Post by: Goober5000 on July 14, 2004, 11:14:39 am
Look again. :) They should both be there.
Title: FRED help - Even in the right forum this time.
Post by: Black Wolf on July 14, 2004, 11:15:46 am
Vanilla FRED, or the very Latest?
Title: FRED help - Even in the right forum this time.
Post by: Goober5000 on July 14, 2004, 11:26:49 am
Odd... I just checked the code, and both sexps seem to resolve to the same AI behavior. :wtf:

I was looking at the code, though I thought I saw it in FRED too.  I'll have to check again later... I'm at work now. :sigh:
Title: FRED help - Even in the right forum this time.
Post by: Black Wolf on July 14, 2004, 11:30:46 am
Bugger. Ah well, I guess I'm messing with the subspace effect sexp... and that's one I thought I'd never use :D