Door sensing autoclose logic

    Joined
    Jul 6, 2013
    Messages
    451
    Reaction score
    108
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 5
    New version with sensors.

    This will automatically close the door after a number of delay blocks. You can probably tie in other logic ways to open the door but this will close it.

    Normal sensor setup. Get a clock to trigger the sensor. The sensor needs to be connected to a block on the door its sensing. There is no need to connect it to an activation block as it will automatically output on when door closed and off when door open. Next place an activation block next to the sensor. Then from there see this diagram

    Clock > Sensor (connected to door)
    Actuator (next to not connected to sensor) > NOT > Delay > as many as you want delays > OR. Connect the actuator as well to the OR then connect the OR to the door or whatever switch is used to open or close the door.

    The auto open and close doors using area triggers will open and close for anyone not just you or your faction. This setup will require you to open the door some other way that can be limited to you or by faction. You can also just manually open the door. It will detect that and close it. If you open the door by other logic this will still detect and close it.

    You can even close the door early and this logic won't care. The only thing that will trip it is if you reopen it again before it actually attempts to close it from the original opening. Which just means the door will close to quickly.