Read by Council Dead Mans Switch

    Joined
    Jan 17, 2015
    Messages
    10
    Reaction score
    22
    • Community Content - Bronze 1
    • Purchased!
    • Legacy Citizen
    This would be a really cool logic button.

    It could be used for a controller that controls a multi directional rail cart or something

    It could also be really cool for role play where say you have to hold down the switch to close a hangar door where enemy ships and invaders are spewing in and if you let go, the door will start opening. :D

    Just an idea for the devs
     
    • Like
    Reactions: Blodge
    Joined
    Aug 15, 2013
    Messages
    7
    Reaction score
    2
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    You can kinda already do this... with area trigger or a presure block... if you want you could wire in a button with some logics to make it where you have to press it so often or the doors open again...
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    You can do that with area triggers or step-ons in a narrow corridor.

    But I agree that modding support should be added.
    Code:
    callbackObject
       listenTo( x, y, z )
    onChange
       lastActivated = timestamp
       enableBlock( x, y, z )
       addTimedTask( +t, doTask )
    doTask
       if( lastActivated < timestamp -time ) disableBlock( x, y, z )
     
    Joined
    Jan 17, 2015
    Messages
    10
    Reaction score
    22
    • Community Content - Bronze 1
    • Purchased!
    • Legacy Citizen
    Yeah i realize you can already do it with other logic blocks, but its just the feel of having one that would be cool
     

    Keptick

    Building masochist
    Joined
    Sep 26, 2013
    Messages
    4,062
    Reaction score
    1,841
    • Councillor 2 Gold
    • Railman Gold
    • Thinking Positive Gold
    You can do that with area triggers or step-ons in a narrow corridor.

    But I agree that modding support should be added.
    Code:
    callbackObject
       listenTo( x, y, z )
    onChange
       lastActivated = timestamp
       enableBlock( x, y, z )
       addTimedTask( +t, doTask )
    doTask
       if( lastActivated < timestamp -time ) disableBlock( x, y, z )
    Area trigger is toggle based, so it doesn't detect when something exits (I seriously wish it would). You'd need two area trigger layers to detect entry/exit, but that doen't work in some situations (cause it takes more space). I'm unsure about step-ons.
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    Area trigger is toggle based, so it doesn't detect when something exits (I seriously wish it would). You'd need two area trigger layers to detect entry/exit, but that doen't work in some situations (cause it takes more space). I'm unsure about step-ons.
    True. either fix that or just add the .... modding support.