Author Topic: Ship misses nav points and turns back. Help please?  (Read 1757 times)

0 Members and 1 Guest are viewing this topic.

Offline Dearon

  • 22
Ship misses nav points and turns back. Help please?
Hello everybody!

I just started FREDing, i made the tutorial map and one own map and i want to make a short campaign now. The first map is a "cutscene" map. The player is controlled by the ai all the time and the his ship follows a waypoint path but the ai misses the first waypoint most of the time (99%), then turns around and keeps trying. Before i added enemies it worked fine. I tried a lot of things, but it doesnt want to work, i would appriciate any advice. Thank you. (Sorry for my bad english)

The map:

https://rapidshare.com/files/1872619505/start.bak
https://rapidshare.com/files/672352925/start.fs2

 
Re: Ship misses nav points and turns back. Help please?
Sometimes this happens. The workaround I use is to use individual waypoints instead of a path, and to set up sexps that will clear the ship's goals and add a goal to do the next waypoint path when the ship gets within a few meters of the waypoint it's supposed to be headed towards.

Code: [Select]
$Formula: ( when
   ( <
      ( distance
         "Alpha 1"
         "Waypoint path 1:1"
      )
      5
   )
   ( clear-goals "Alpha 1" )
   ( add-goal
      "Alpha 1"
      ( ai-waypoints-once
         "Waypoint path 2"
         200
      )
   )
)
+Name: Alpha 1 waypoint path 2
+Repeat Count: 1
+Interval: 1

 

Offline Dearon

  • 22
Re: Ship misses nav points and turns back. Help please?
Thank you, i will try it now, i hope it works. :)

 
Re: Ship misses nav points and turns back. Help please?
Also try setting no dynamic goals in the wings editor.
May the Force be with you

  

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Ship misses nav points and turns back. Help please?
Also try setting no dynamic goals in the wings editor.

This may work... but it will make those ships act very, very retarded. (AKA "Oh, I'm being shot at?! I'll just fly in a straight line and pretend it's not happening and hope they go away..."
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.