Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Vertigo 7 on August 11, 2008, 05:06:59 pm

Title: support ship arrival and departure
Post by: Vertigo 7 on August 11, 2008, 05:06:59 pm
is there anyway to set the support ship to arrive and depart from the docking bay of some ship instead of hyperspace?
Title: Re: support ship arrival and departure
Post by: WMCoolmon on August 11, 2008, 07:40:52 pm
I think if a support ship is already present in the mission, the support command will apply to that ship rather than warping in a new one.

Assuming that's the case, "Disallow support ship", set the release of the support ship to some predetermined cue and the arrival location to a ship's hangar bay, and then set ship-protect. That way the player can't summon a support ship before the "real" one arrives, and the support ship from the hangar won't get blown away mid-mission and leave the player without a support ship.
Title: Re: support ship arrival and departure
Post by: blowfish on August 11, 2008, 07:43:52 pm
Can't you also use set-support-ship?
Title: Re: support ship arrival and departure
Post by: WMCoolmon on August 11, 2008, 07:50:26 pm
That would be easier, I suppose. :p
Title: Re: support ship arrival and departure
Post by: colecampbell666 on August 11, 2008, 07:59:24 pm
Also, have the support ship exit the docking bay once the C-5 command is given.
Title: Re: support ship arrival and departure
Post by: Vertigo 7 on August 11, 2008, 08:46:57 pm
so i guess theres no way for me to make the rearm/repair command summon the support ship from a hanger bay instead of hyperspace?
Title: Re: support ship arrival and departure
Post by: colecampbell666 on August 11, 2008, 08:51:56 pm
Have the support ship arrival in the docking bay (you'll have to manually add it to the mission) and then set it to arrive when you press C-5 using a SExp.
Title: Re: support ship arrival and departure
Post by: Vertigo 7 on August 11, 2008, 09:12:31 pm
ok i set up:

Event
    when
           and-in-sequence
                  Keypressed
                     C
                   Keypressed
                     5
    do-nothing


i set that event as the arrival que for the support ship and it never comes. If i "disallow support ship" it doesn't allow me to use the rearm/repair command
Title: Re: support ship arrival and departure
Post by: Vertigo 7 on August 11, 2008, 09:24:31 pm
ok i figured out what blowfish was talking about. i kept looking for that "set-support-ship" but couldn't find it then i saw it as a sexp action. it works like a charm =D
Title: Re: support ship arrival and departure
Post by: blowfish on August 11, 2008, 09:24:56 pm
Good.  I was just about to post about that :)