I tried to make a freighter (Abydos) ferry passengers from and installation (Elpis) to a Drydock and back continuously. Here is the event:
$Formula: ( when
( <
( distance
"Abydos waypoint:1"
"GVFr Abydos"
)
200
)
( clear-goals "GVFr Abydos" )
( add-goal
"GVFr Abydos"
( ai-dock
"Drydock"
"docking point"
"blahblah"
89
)
)
( add-goal
"GVFr Abydos"
( ai-undock 79 )
)
( add-goal
"GVFr Abydos"
( ai-dock
"Elpis Installation"
"docking point"
"topside docking"
69
)
)
( add-goal
"GVFr Abydos"
( ai-undock 59 )
)
( add-goal
"GVFr Abydos"
( ai-waypoints-once
"Abydos waypoint"
55
)
)
)
+Name: Abydosjourney
+Repeat Count: 1
+Trigger Count: 99999
+Interval: 60
Proximity to Abydos waypoint should trigger Clear Goals for Abydos, and add Dock with Drydock, Undock, Dock with Elpis Installation, Undock, and Waypoint once to Abydos waypoint goals. Then the cycle repeats.
Instead the freighter only docks and undocks with the Drydock in a loop, it wont dock to the Elpis installation nor proceed to the waypoint.