@hpgbproductions Thanks! It's ok, my thing doesn't have to be perfect. I'm trying to remaster my Ao Jun with all the latest tech before I make the Seraph from War Robots
@JustWingIt to change the time, change the 1 in MyButton variable
Stopping the button from being pressed is more complicated, I tried it and I don't know how to do it without actual trickery (pistons or storing a whole lot more variables)
@hpgbproductions Can't download it right now, but I will when I get home. I assume that if you hook this up to a light, for example, it would stay on until the button unpresses itself?
Tried to make something Yeah
Button has interactionType=Toggle and outputs to MyButton
.
MyTimer = smooth(MyButton=1 ? 999999 : 0, MyButton=1 ? 1 : 999999)
This uses an alternative to the sum function which can be reset.
.
MyButton = MyTimer > 1 ? 0 : MyButton
Write 0 to MyButton if the timer is at more than 1 second, otherwise don't change the value
You can also use a variable activation group
Did more testing, made a new button which is more funky
@hpgbproductions Thanks! It's ok, my thing doesn't have to be perfect. I'm trying to remaster my Ao Jun with all the latest tech before I make the Seraph from War Robots
@JustWingIt to change the time, change the 1 in MyButton variable
Stopping the button from being pressed is more complicated, I tried it and I don't know how to do it without actual trickery (pistons or storing a whole lot more variables)
@hpgbproductions Thanls so much BTW, I'll credit you
@hpgbproductions And, is there a way to stop a button from being able to be pressed for a certain amount of time?
@hpgbproductions How would I adjust the code to change the seconds for which the button stays pressed?
@JustWingIt yes it works with a light using the same input as the button
@hpgbproductions Can't download it right now, but I will when I get home. I assume that if you hook this up to a light, for example, it would stay on until the button unpresses itself?
Tried to make something
Yeah
Button has interactionType=Toggle and outputs to MyButton
.
MyTimer =
smooth(MyButton=1 ? 999999 : 0, MyButton=1 ? 1 : 999999)
This uses an alternative to the sum function which can be reset.
.
MyButton =
MyTimer > 1 ? 0 : MyButton
Write 0 to MyButton if the timer is at more than 1 second, otherwise don't change the value
You can also use a variable activation group