Difference between revisions of "Is-subsystem-destroyed-delay"

From FreeSpace Wiki
Jump to: navigation, search
(new page)
 
(note regarding recent FSO build behavior)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
         3:      Time delay in seconds (see above).
 
         3:      Time delay in seconds (see above).
  
[[Category::Retail SEXPs]]
+
==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]]

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" ) 
     )
  )