Author Topic: omg way points... ai goals *head explodes*  (Read 1556 times)

0 Members and 1 Guest are viewing this topic.

omg way points... ai goals *head explodes*
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.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • Moderator
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: omg way points... ai goals *head explodes*
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.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: omg way points... ai goals *head explodes*
you're awesome. thanks man

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: omg way points... ai goals *head explodes*
He is actually. Moderator approves of your comment.  :yes:
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.