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
-
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.
-
add-goal ai-warp-out?
-
Blaise is correct. :) I think I've actually used it in a mission similar to the one you have there.
-
Tried it. The ship heads right back for the docking bay.
-
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.
-
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 :)
-
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.
-
ai-warp? :wtf: I've only ever seen ai-warp-out.
-
Look again. :) They should both be there.
-
Vanilla FRED, or the very Latest?
-
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:
-
Bugger. Ah well, I guess I'm messing with the subspace effect sexp... and that's one I thought I'd never use :D