func_button


([rD]MrPink) #1

I noticed it doesn’t exist, at least not in GTK. What replaced it? And how do I use whatever replaced it?


(Lockeownzj00) #2

Use func_invisible_user. I do, at least.


(Storm) #3

It would be nice to have good tutorial here hun?

Lifts, and doors of all types are easy once you know the basics


(Lockeownzj00) #4

To make a button:

  1. Make your object.
  2. Surround it by something that will be invisible (even though it’s not under triggers I just make it trigger so I know what it is)
  3. Set it to func_invisible_user.
  4. Set it to not_kickable as one of the spawnflags.
  5. Create your other object.
  6. Select the func_invisible_user first, then select your second object, and hit “ctrl+k” to link them.

Now that will initiate whatever action the second one does. Hope I’m not forgetting anything.


([rD]MrPink) #5

I knew that, I was just using func_button all the time.


(SCDS_reyalP) #6

Heres the rtcw entities.def stuff for func_button. No idea if it still works in ET or not. If you try it, let us know.


/*QUAKED func_button (0 .5 .8) ? x x x TOUCH x x STAYOPEN
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.

"model2"	.md3 model to also draw
"angle"		determines the opening direction
"target"	all entities with a matching targetname will be used
"speed"		override the default 40 speed
"wait"		override the default 1 second wait (-1 = never return)
"lip"		override the default 4 pixel lip remaining at end of move
"health"	if set, the button must be killed instead of touched
"color"		constantLight color
"light"		constantLight radius
*/