Breach Sensor

    Joined
    Jan 31, 2015
    Messages
    1,696
    Reaction score
    1,199
    • Thinking Positive
    • Likeable
    A sensor/button block that would activate if ANY homogeneous, connected block was destroyed.

    E.G. A slab of grey standard armor loses a block to a cannon strafe, breach sensor activates, a linked blinky-light signal turns on in the cockpit (and in view of primary exterior cam :).

    Perhaps the sensor must only be bordered by one type of block to be valid? Whatever is easiest to code.

    It would be fantastic to know immediately when armor or hull is breached on a ship. Sensors & lights could be rigged to a variety of elements including various hull areas (fore, aft, port, etc), engines, weapon systems, etc. The engine already checks for hull block damage, I think it could be coded in as Logic along the lines of the existing Button block.
     
    • Like
    Reactions: Malacodor

    jayman38

    Precentor-Primus, pro-tempore
    Joined
    Jul 13, 2014
    Messages
    2,518
    Reaction score
    787
    • Purchased!
    • Thinking Positive
    • Legacy Citizen 4
    Probably the easiest thing to code would be to have armor blocks send a false signal to a master logic block upon destruction. Then simply wire all the armor/hull blocks in an area into a pre-activated Or logic block. It would be the reverse-direction that you'd normally expect in a parent-child relationship, where the parent (logic block) is changed by the child (armor block) behavior, but that way, you could group-connect large areas of hull/armor all at once, using the Shift-V technique.
     
    • Like
    Reactions: MacThule