Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Razial on August 12, 2009, 09:27:50 am

Title: Wing waves and timings?
Post by: Razial on August 12, 2009, 09:27:50 am
Basically I have been having an ongoing problem where I can't seem to get a wing wave to come in at a certain time, or after a certain event. The only entry parameters for successive wing waves seem to be delay and threshold. As I don't want to create hundreds of enemy wings all over the map, I was wondering if it is possible to set a wing with 4 waves, but specify each wave as triggered by an event and/or to warp in from a different location. Any ideas?  :)
Title: Re: Wing waves and timings?
Post by: FUBAR-BDHR on August 12, 2009, 12:28:20 pm
Yes it is possible but kind of tricky especially the warp in part.  For the arrival part you can check out my TvT Gauntlet (http://fubar5.fubar.org/fubar/FS2/Missions/FUBAR_MT04.fs2). 

The warp part depends on what mod/TC you are using and where you want them to arrive.  It can be as easy as setting arrival to near a ship or as complicated as putting the wing at 0,0,999999 (set radar range to less then that) and using when or when-argument has-arrived-delay (list of first ship in each wing) to move the ships to specific coordinates. You would need to specify a warp effect at or just before the move time. 
Title: Re: Wing waves and timings?
Post by: Goober5000 on August 19, 2009, 12:34:17 pm
Actually... I'm pretty sure you can get waves to appear at a particular time by messing around with the arrival cue.  Wings will not arrive if their arrival cue is false, so you just have to get it to toggle true/false at the appropriate times.  NB: you must use a sexp that won't evaluate to SEXP_KNOWN_TRUE or SEXP_KNOWN_FALSE.

Disclaimer: I haven't tried this.
Title: Re: Wing waves and timings?
Post by: Axem on August 19, 2009, 08:00:39 pm
It may help to know which sexps evaluate to what you CODE WIZARD!

(You're just talking about events-is-LOGIC-delay right?)
Title: Re: Wing waves and timings?
Post by: karajorma on August 19, 2009, 08:39:06 pm
There are a few others that evaluate to SEXP_KNOWN_TRUE or SEXP_KNOWN_FALSE. SEXPs like subsystem-destroyed-delay, has-arrived-delay, will do too IIRC.