Prop_button infinite reset time?

Avatar
Logic
298 Posts
Posted May 12, 2012
This is probably the stupidest question ever, but...

How do you make a prop_button not reset after a certain amount of time? I though that I just had to put -1 as the reset time, but it keeps resetting. I know that I can set it incredibly high so that it takes forever to reset, but I'm looking for infinity here.

Wow, I must be looking like a complete noob with this kind of question, but I can't figure it out. I think that I've done it earlier though :/

Advertisement
Registered users don’t see ads! Register now!
Avatar
GLaDOS CUBE
163 Posts
Posted May 12, 2012
Replied 34 minutes later
I Dont think you can, I just put the reset time at "99999999999999999999999999999999999999999999999999999999999999999999999999999999" that works fine.
Avatar
Logic
298 Posts
Posted May 12, 2012
Replied 28 minutes later

GLaDOS CUBE wrote:
I Dont think you can, I just put the reset time at "99999999999999999999999999999999999999999999999999999999999999999999999999999999" that works fine.

That's what I wanted to avoid :/ But if it's not possible then I don't have much choice...

Avatar
Vordwann
767 Posts
Posted May 12, 2012
Replied 3 hours later
If the button is named "Button_1" for example, put in the output: "Onpressed -> Button_1 -> Lock", which will keep the button from ever being pressed again.
Avatar
Logic
298 Posts
Posted May 12, 2012
Replied 1 minute later

Vordwann wrote:
If the button is named "Button_1" for example, put in the output: "Onpressed -> Button_1 -> Lock", which will keep the button from ever being pressed again.

Ahh, exactly what I was looking for! Thanks! :smile:

Avatar
FelixGriffin
2,680 Posts
Posted May 13, 2012
Replied 18 hours later
You can also send the output to "!self", which will avoid some glitches if you rename things or use prefabs.
Avatar
Lpfreaky90
2,842 Posts
Posted May 13, 2012
Replied 1 hour later
Yep.
Onpressed, !self, lock is the most clean option.
a very high reset time could also work but I prefer the cleaner option.
Avatar
Kaleido
272 Posts
Posted May 13, 2012
Replied 12 hours later

GLaDOS CUBE wrote:
I Dont think you can, I just put the reset time at "99999999999999999999999999999999999999999999999999999999999999999999999999999999" that works fine.

This is a really bad idea, FYI...

No one should ever do this.

Avatar
Lpfreaky90
2,842 Posts
Posted May 14, 2012
Replied 9 hours later

Kaleido wrote:
GLaDOS CUBE wrote:

I Dont think you can, I just put the reset time at "99999999999999999999999999999999999999999999999999999999999999999999999999999999" that works fine.

This is a really bad idea, FYI...

No one should ever do this.

The buttons in the PTI do this :sad:
I actually asked valve to change it but they didn't :sad:

Avatar
HMW
806 Posts
Posted May 14, 2012
Replied 7 hours later
So that's why there's a "TimerSound" attribute in the buttons that's not exposed in the UI. Wouldn't want to have it keep ticking indefinitely...
I bet they're doing that because it's the only way to make the button stay in its "pressed" animation. (If you let it lock itself, it will still pop back out after the default time expires, you just can't press it any more.)
Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted May 15, 2012
Replied 1 day later
You could always use the Portal 1 method, with a prop_dynamic and a func_button...