Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Trivial Psychic on January 08, 2017, 10:25:35 pm
-
So I've been working on a mission, where fighters within a certain range will break off from their escort mission to attack the player, but after a certain period of time will abort and return to their escort. I've got an argument event to tell the wing to attack the player, and store the wing name in a variable. Then I've got an event chained to it where the variable is used to identify the wing to give the remove-order sexp, but upon saving FRED complains about the use of a non-ship in the event. Is there any possibility of the SCP team finding a way to silence this warning, or will it not work the way I think it will? Should I just give up and use separate event sequences for each enemy wing?
-
Try setting the default value of that variable into a valid ship/wing reference. Even if you have a dummy ship that has a false arrival cue. FRED uses the default value of variables when checking the validity of the sexps.
-
I'd set it to Alpha 1 personally. Since unless you have the player ship under AI control at some point in the mission, any orders it accidentally receives will be completely ignored.
-
I switched it to the player for default and it stopped complaining. Thanks.