Difference between revisions of "Change-iff"

From FreeSpace Wiki
Jump to: navigation, search
(note: it can be used on ships not yet present)
m (formatting)
Line 8: Line 8:
 
*The change IFF sexp can be used by mission designers so that when called, it will change the IFF of a given ship so that it can effectively change allegiance. It can also be used to change the Player's IFF simulating desertion or Command's wrath at messing up in some way.
 
*The change IFF sexp can be used by mission designers so that when called, it will change the IFF of a given ship so that it can effectively change allegiance. It can also be used to change the Player's IFF simulating desertion or Command's wrath at messing up in some way.
 
*The Source Code Project has enabled access to the "Traitor" IFF, which is to be preferred over "Hostile" for mission-generated traitor states. It will trigger the table-controlled traitor debriefing.
 
*The Source Code Project has enabled access to the "Traitor" IFF, which is to be preferred over "Hostile" for mission-generated traitor states. It will trigger the table-controlled traitor debriefing.
*''(confirmed on Nov 17, 2020 nightly build)'' Unlike most SEXPs that manage ships, this one can be used on ships that have not yet [[has-arrived-delay|arrived]]. Strangely enough, [[change-iff-color]] must be called
+
*''(confirmed on Nov 17, 2020 nightly build)'' Unlike most SEXPs that manage ships, this one can be used on ships that have not yet [[has-arrived-delay|arrived]]. Strangely enough, [[change-iff-color]] must be called on ships already present.
on ships already present.
 
 
*See also [[change-iff-color]].
 
*See also [[change-iff-color]].
  
 
[[Category:Retail SEXPs]]
 
[[Category:Retail SEXPs]]

Revision as of 13:26, 23 November 2020

change-iff 
    Change IFF (Action operator) 
    Sets the specified ship(s) or wing(s) to the specified team. 
    Takes 2 or more arguments... 
    1: Team to change to ("friendly", "hostile" or "unknown"). 
    Rest: Name of ship or wing to change team status of.

Notes

  • The change IFF sexp can be used by mission designers so that when called, it will change the IFF of a given ship so that it can effectively change allegiance. It can also be used to change the Player's IFF simulating desertion or Command's wrath at messing up in some way.
  • The Source Code Project has enabled access to the "Traitor" IFF, which is to be preferred over "Hostile" for mission-generated traitor states. It will trigger the table-controlled traitor debriefing.
  • (confirmed on Nov 17, 2020 nightly build) Unlike most SEXPs that manage ships, this one can be used on ships that have not yet arrived. Strangely enough, change-iff-color must be called on ships already present.
  • See also change-iff-color.