Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: bomb3rman on November 22, 2016, 10:58:28 am
-
OK I have a strange problem.
I have my wingmen and can give them orders. In FRED, I deselected the player orders for the friendly capship. But when I give my wingmen the order to, let's say, disarm an enemy capship (by using c-3 all fighters-disarm in mission), my capship that is supposed to attack that enemy capship too stops attacking. Does anyone have an idea why? I gave the attack order of the capship a priority above 120 in FRED to make sure that order doesn't get overriden.
Is there a sexp-way to make a capship not take any orders from me? I'm really confused because the attack order and the disarm order for the wingmen are essential to win this mission...
-
Well, do you use any mods? Please upload your mission file, lets take a look.
-
If I recall this correctly, this happens because the game assumes that if the player wants to disarm/disable a capitalship, it has to stay alive.
That's also why there are two ai ignore target options in fred. One has the old behavior, in which if you tell *anyone* to ignore the target, *everyone* will ignore the target. While the new version actually behaves as you'd expect it to.
Ergo, it's probably hard coded behavior that you are running into here, if my assumptions are correct.
-
It could also just be some dumb bug though, who knows ¯\_(ツ)_/¯
-
Hello and thx for the quick answers. Unfortunately i can't upload the File now because i Don't have it with me and I write with my Smartphone. Well the idea spoon suggested makes sense i guess... I will try working with different orders or maybe take the command-wingmen option out completely and give them orders with the sexp command. Then i will report back :-)
-
I vaguely seem to remember Wing Commander Saga running into this exact same issue and coming up with a solution. But I'll be damned if I can remember what it was even though I was quite heavily involved.
-
If you order anyone to disarm or disable a ship, the ship automatically becomes "protected", meaning ships not disarming/disabling it will refuse to attack it. This is hard-coded behavior, but you can modify it with SEXPs (remove protection and reissue attack orders on that specific ship whenever it gets protected, for instance).
-
Does this work for manually targetting weapons or engines and ordering the AI to attack that subsystem or is it only for disarm/disable orders?
-
Does this work for manually targetting weapons or engines and ordering the AI to attack that subsystem or is it only for disarm/disable orders?
Only a disarm/disable AI goal will trigger the protection; additionally, whether or not protection is granted can be controlled with the "$Protected on cripple: (http://www.hard-light.net/wiki/index.php/Objecttypes.tbl#.24Protected_on_cripple:)" setting on the ship type.
-
That last one is the bit I remember WCS adding.
-
Hello, just wanted to give you a feedback: It works now, thanks for the tip with "unprotect ship"... Finally :lol:
Though I have to go through the entire mission again and make my wingmen accept my orders again, it's worth it, now I can design the mission as it was intended :)
Great job, guys!