Difference between revisions of "Good-secondary-time"
From FreeSpace Wiki
m |
m (Update the comment on good-secondary-time to better document what the sexp is actually doing) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Set | + | Set preferred secondary weapons |
− | This sexpression is used to inform the AI about | + | This sexpression is used to inform the AI about preferred secondary weapons to fire during combat. |
+ | When this expression is evaluated, any AI ships of the given team prefer to fire the given weapon at the given ship. | ||
+ | (Preferred over other secondary weapons) | ||
Takes 4 argument... | Takes 4 argument... | ||
Line 11: | Line 13: | ||
*Good-secondary-time forces the AI to use a specific secondary weapon (chosen from a limited list) against a specific ship when attacking that target. | *Good-secondary-time forces the AI to use a specific secondary weapon (chosen from a limited list) against a specific ship when attacking that target. | ||
*Only secondary weapons that are marked as "Huge" in the weapon.tbl (or .tbm) will be listed. | *Only secondary weapons that are marked as "Huge" in the weapon.tbl (or .tbm) will be listed. | ||
+ | *The second parameter does not actually have an effect | ||
+ | *Once this sexp has been called, it will remain in effect until the mission ends (or the target is destroyed, at which point it will become irrelevant) | ||
[[category: Retail SEXPs]] | [[category: Retail SEXPs]] |
Latest revision as of 21:20, 15 February 2020
Set preferred secondary weapons This sexpression is used to inform the AI about preferred secondary weapons to fire during combat. When this expression is evaluated, any AI ships of the given team prefer to fire the given weapon at the given ship. (Preferred over other secondary weapons)
Takes 4 argument... 1: Team name which will prefer firing given weapon 2: Maximum number of this type of weapon above team can fire. 3: Weapon name (list includes only the valid weapons for this expression 4: Ship name at which the above named team should fire the above named weapon
Comments
- Good-secondary-time forces the AI to use a specific secondary weapon (chosen from a limited list) against a specific ship when attacking that target.
- Only secondary weapons that are marked as "Huge" in the weapon.tbl (or .tbm) will be listed.
- The second parameter does not actually have an effect
- Once this sexp has been called, it will remain in effect until the mission ends (or the target is destroyed, at which point it will become irrelevant)