Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Dearon on November 30, 2011, 11:31:34 am
-
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
-
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.
$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
-
Thank you, i will try it now, i hope it works. :)
-
Also try setting no dynamic goals in the wings editor.
-
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..."