Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: cdombroski on February 25, 2010, 07:13:03 am

Title: ai-destroy-subsystem
Post by: cdombroski on February 25, 2010, 07:13:03 am
The ai-destroy-subsystem goal isn't working exactly like I expect. I've given a wing 2 destroy subsystem goals, but after the first subsystem is destroyed, they just attack the ship like normal instead of concentrating on the second subsystem.

Is this the way this goal is supposed to work? Do I just need to give these goals one at a time to get the desired effect?
Title: Re: ai-destroy-subsystem
Post by: The E on February 25, 2010, 07:17:50 am
You should probably give those goals sequentially (not in the same event) and with differing priorities.
Title: Re: ai-destroy-subsystem
Post by: cdombroski on February 25, 2010, 07:22:12 am
Just to be clear, I gave the goals in the initial orders and it looks something like this:
GoalTargetSubsystemPriority
ai-destroy-subsystemGTCv Yorkturret2370
ai-destroy-subsystemGTCv Yorkturret2460
Title: Re: ai-destroy-subsystem
Post by: The E on February 25, 2010, 07:26:35 am
I would give the AI the first goal as an initial order, and create an event that gives the AI the second one after the first goal is fulfilled.
Title: Re: ai-destroy-subsystem
Post by: cdombroski on February 25, 2010, 07:27:47 am
Ok, I kind of figured that's what I would have to do. Does anybody know why it doesn't work the way that I did it?
Title: Re: ai-destroy-subsystem
Post by: The E on February 25, 2010, 07:31:01 am
That would be an issue that needs to be investigated. Can you post an issue with the not-working mission attached at the SCP Mantis (http://scp.indiegames.us/mantis/)?
Title: Re: ai-destroy-subsystem
Post by: Fury on February 25, 2010, 07:54:36 am
I suppose you need to use ai-clear-goals sexp first, then chain new ai orders with 1 sec delay.
Title: Re: ai-destroy-subsystem
Post by: karajorma on February 25, 2010, 07:59:09 am
That would be an issue that needs to be investigated. Can you post an issue with the not-working mission attached at the SCP Mantis (http://scp.indiegames.us/mantis/)?

No need. I'm already working on this exact issue actually.

EDIT : Actually on second thoughts it wouldn't hurt to have the mission so post the Mantis issue.
Title: Re: ai-destroy-subsystem
Post by: cdombroski on February 25, 2010, 08:10:08 am
Well I've got an account there now (how many more accounts can I sign up for today? :)), but I'm at work, so I can't really post an issue with the mission attached until this evening. (Silly Real Life getting in the way of fun :()
Title: Re: ai-destroy-subsystem
Post by: karajorma on February 25, 2010, 08:30:14 am
That's fine. I'm looking into the issue already anyway.
Title: Re: ai-destroy-subsystem
Post by: cdombroski on February 25, 2010, 06:12:23 pm
http://scp.indiegames.us/mantis/view.php?id=2143