add-goal Add goal (Action operator) Adds a goal to a ship or wing. Takes 2 arguments... 1: Name of ship or wing to add goal to. 2: Goal to add.
Used to give new orders to AI ships. Generally, it is a good idea to clear a unit's current orders, before giving it new ones, to prevent conflicting orders from leading to unexpected behavior. Note also that fighters and bombers may ignore their assigned orders to defend themselves, unless you deactivate dynamic goals for these ships (an option available in the wing editor and the miscellaneous section of the ship editor).