Hard Light Productions Forums

Hosted Projects - Standalone => The Babylon Project => Topic started by: Vertigo 7 on July 17, 2008, 12:00:11 am

Title: omg way points... ai goals *head explodes*
Post by: Vertigo 7 on July 17, 2008, 12:00:11 am
I'm having an issue... I've got an omega destroyer and 4 fighter escorts all following individual way point paths. I figured out how to set goals in event editor (sorta, just basic stuff) so instead of using initial orders to set the fighters on their way point paths, im using a goal. Wellll... I wanted to set a 2nd goal after those fighters finished their way point path they depart in the destroyer's bay. It's not working >< Whats happening is the fighter is immediately b'lining for the docking bay.

Here's the events I have set up...

Charlie Goals
      When
           is-event-true-delay
               EA Omega Arrive
               0
           add-goal
               Charlie 1
                   ai-waypoints-once
                      Waypoint path X
                      89
           add-goal
               Charlie 2
                    etc etc for each fighter

that part works.... I tested it with out the following event and they do the way point thing like good lil drones
next i have

Charlie Wing Depart
        When
                is-previous-goal-true
                      b5-2
                      Charlie Goals
        When
                has-time-elapsed
                       2
                do-nothing

and then on the fighter its self i have for the departure cue

          is-event-true-delay
                Charlie Wing Depart
                       2



Either i dont understand how the previous goal sexp works (which is entirely possible) or its counting the waypoint goal as complete as soon as the order is given to go to the way points. It's not even hitting way point 1 so yeah i donno... im confused.
Title: Re: omg way points... ai goals *head explodes*
Post by: FUBAR-BDHR on July 17, 2008, 12:08:23 am
is-previous-goal is used for campaigns not for individual missions.  What you want to do is this:

When
-->has-arrived-delay
---->EA-Omega
---->0
-->add-goal
---->Charlie
---->ai-waypoints-once
------>Charlie path
------>89

Then the departure cue would be:

-->are-waypoints-done-delay
---->Charlie
---->Charlie path
---->0


Or something close to that anyway.
Title: Re: omg way points... ai goals *head explodes*
Post by: Vertigo 7 on July 17, 2008, 07:36:27 am
you're awesome. thanks man
Title: Re: omg way points... ai goals *head explodes*
Post by: IPAndrews on July 17, 2008, 11:28:28 am
He is actually. Moderator approves of your comment.  :yes: