Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Black Wolf on July 05, 2007, 11:44:12 am
-
Does this sexp not work, or am I failing to understand how the FS AI thinks. I have ships with orders to attack another ship (Priority 50). When they get too close, they then get given an order to go to a waypoint (Priority 89). When they're far enough away, I use remove-goal to remove the waypoint order. However, they continue on their merry way to the waypoint and don't revert to attacking the first ship until they've completed the waypoint. Which is annoying.
So, my question. Am I using the sexp wrong (If I am, it seems like a pretty useless sexp as I can't see any other way to apply it) or is the sexp itself buggered?
Now, granted, I can do this another way, with a lot more waypoints and a lot of variables, and in some ways, that'd be better, but It'll also get very, very sexp intensive and I'd very much prefer to be able to use this method.
-
// Goober5000
void sexp_remove_goal(int n)
{
}
I guess we need to ask Goober. Judging from the commit log it looks like the SEXP was added incomplete (possibly even by accident since it's not mentioned) and never touched again.
-
I've got this feeling it doesn't actually work. I vaguely remember trying out the SEXP a few times, but when I didn't see results, I redid the entire mission altogether (completely unfamiliar with variables, got to learn that sooner or later) and left said misssion on my hard disk to rot.
-
It doesn't work. The code to make the SEXP actually do anything is non-existent. There is meant to be something between those brackets in the code I posted.
-
Right, noted.
Then again I'm probably setting up patrols the wrong way if I have to add and remove goals at every waypoint... :doubt:
-
Yep. Set up a path of more than one waypoint and the ships will quite happily follow it.
-
I had intended to add it but never actually got around to it. :nervous:
-
I had intended to add it but never actually got around to it. :nervous:
If this sexp is what I think it was supposed to be, yes, tell me about it. :p
-
Is it going to be added back in? I can think of several places it'd come in handy, particularly for controlling the AI during atmospheric missions.