Difference between revisions of "Add-goal"
From FreeSpace Wiki
BlueFlames (talk | contribs) (New page: 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. ===Comments===...) |
(clear-goal isn't necessary) |
||
Line 10: | Line 10: | ||
===Comments=== | ===Comments=== | ||
− | Used to give new orders to AI ships. | + | Used to give new orders to AI ships. Add-goal adds a priority 89 goal by default, which will take priority over whatever else the AI is doing; it's usually unnecessary to call the [[clear-goals]] SEXP first. 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). |
[[Category:Retail SEXPs]] | [[Category:Retail SEXPs]] |
Revision as of 22:17, 18 March 2008
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.
Comments
Used to give new orders to AI ships. Add-goal adds a priority 89 goal by default, which will take priority over whatever else the AI is doing; it's usually unnecessary to call the clear-goals SEXP first. 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).