Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Manipulating assignments with an AI fleet controller  (Read 237 times)

Sorrydough

  • Ensign
  • *
  • Posts: 30
    • View Profile
Manipulating assignments with an AI fleet controller
« on: October 18, 2023, 01:46:41 AM »

I'm making a custom AI admiral and I've run into a couple issues.

1. How do I directly tell a ship to fulfill an assignment? None of the arguments for createAssignment(assignment, target, useCommandPoint) allow me to specify which ships are actually going to fulfill this assignment, instead leaving it to the AI to determine that on its own. Sometimes I'd like to assign specific ships to do a specific function. For example to create a wolfpack of specific hulls that form up on a leader, and then the leader goes to a waypoint.

2. I can't figure out how to get the API to give me a list of assignments and what object they're attached to. (ie, defend order attached to an objective, or engage order attached to a ship).
I've made a workaround for this second one, but just in case someone knows, I'd like to use an API solution if possible instead of my own janky one.
« Last Edit: October 18, 2023, 09:40:36 AM by Sorrydough »
Logged