Is-subsystem-destroyed-delay: Difference between revisions

Shade (talk | contribs)
m typo
note regarding recent FSO build behavior
 
Line 6: Line 6:
         2:      The name of the subsystem we are checking status of.
         2:      The name of the subsystem we are checking status of.
         3:      Time delay in seconds (see above).
         3:      Time delay in seconds (see above).
==Comments==
*Current FreeSpace Open build automatically destroy all subsystems on a ship that's going down. This means every is-subsystem-destroyed-delay that pertains to that ship will turn true. If you don't want that, you have to do this:
$Formula: ( when
  ( and
      ( is-subsystem-destroyed-delay
        "Arbiter"
        "TurretHuge"
        1
      )
      ( not
        ( is-destroyed-delay 0 "Arbiter" )
      )
  )


[[Category:Retail SEXPs]]
[[Category:Retail SEXPs]]

Latest revision as of 09:29, 27 November 2020

Is subsystem destroyed delay (Boolean operator)
        Becomes true <delay> seconds after the specified subsystem of the specified ship is destroyed.

Returns a boolean value; Takes 3 arguments:
        1:      Name of ship the subsystem we are checking is on.
        2:      The name of the subsystem we are checking status of.
        3:      Time delay in seconds (see above).

Comments

  • Current FreeSpace Open build automatically destroy all subsystems on a ship that's going down. This means every is-subsystem-destroyed-delay that pertains to that ship will turn true. If you don't want that, you have to do this:
$Formula: ( when 
  ( and 
     ( is-subsystem-destroyed-delay 
        "Arbiter" 
        "TurretHuge" 
        1 
     )
     ( not 
        ( is-destroyed-delay 0 "Arbiter" ) 
     )
  )