holding buttons Created 18 years ago2005-11-05 19:29:38 UTC by Archie Archie

Created 18 years ago2005-11-05 19:29:38 UTC by Archie Archie

Posted 18 years ago2005-11-05 19:29:38 UTC Post #145574
Hey y'all

Just wondering if it is possible to make a button activate when you press use and deactivate when you let go.

Im thinking about using thrusters for this 'thing' (dont wanna ruin anything) and i want a button for an engine that will make it fire for as long as you hold that button.
Archie ArchieGoodbye Moonmen
Posted 18 years ago2005-11-06 17:01:27 UTC Post #145788
Perhaps you could email the Halloween mod team or decompile their map as they have buttons that do that.

The mod is called Halloween: Pumpkin night
Habboi HabboiSticky White Love Glue
Posted 18 years ago2005-11-06 17:18:24 UTC Post #145791
When I make switches quick, I simply make a brush, split it in two, and make on half for activate and the other for de-activate.

You could also parent the button to func_door and such, so they move around,, uh, I'll show you.
User posted image
In the front, there is a button, paranted to a func door.
That button ACTIVATES the light (for example), but it also activates the door so it slides up.
When pressing the other button, wich deactivates the light, the door slides down again, and you have access to the actovator again.
Aslo, behind the buttons, the real brush with the switch texture is placed.
Or, you could just put that texture on the deactivator button.
The door and the ACTOVATOR needs to be nodraw of course.
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-11-06 18:12:10 UTC Post #145809
that didnt help at all.. i know how to use buttons... i want a button to activate for as long as i hold it for.
Archie ArchieGoodbye Moonmen
Posted 18 years ago2005-11-06 18:18:02 UTC Post #145810
Oh, sorry, I missunderstood your question. :(
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-11-14 21:24:21 UTC Post #147176
You could probably use func_rot_button for this.
You must be logged in to post a response.