Button lock bug

Jun 26, 2016
14
2
Hi. I was creating a deathrun map, and,when i pressed my button, i set it up to lock itself. I also set up a jump where you can choose wich spot will kill you, and then lock the other spot button only one spot kill you
hammer2.png

But here is problem : the button don't want to lock anything.
hammer1.png
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Instead of locking, you can try disabling the button it: OnDamage->-name of your button->Disable
 

Izotope

Sourcerer
aa
May 13, 2013
698
764
BMr3Owi.png

OnPressed > OnDamaged
Which is why locking didn't work, you kept damaging a locked button, therefore still firing the output.
But you can't press a locked button.
Do this for all your deathrun buttons.

Hope this helps ;)
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
OnPressed also lets players press a button by binding a key to +use, on servers that allow it. It's a bit quicker to spring the trap than melee hitting the button, and it doesn't give away your position because there is no weapon impact sound.