Help?? Menu that can triger a Entity

  • Thread starter Thread starter angelbv
  • Start date Start date
A

angelbv

Guest
I was wondering if it is posible to trigger a entitiy by a menu??
 
lol, I was gonna ask what are you talking about? what language and what type of application, but I soon rememberd! THIS IS A HALF-LIFE CODING FORUM!!!! wow .. I almost forgot.

so um, yeah, I guess, what do you mean by triggering it? I really don't know what I'm talking about but I guess you would call the Use or Touch method on the entity.
 
i want to make a device that can by controled by a menu only whene you stand in front of it.

but i maby have a idea now to yust look at the train controler
 
Well, first of all, look at an example of a menu interface. Not sure where to find one, but there are lots of tutorials around.

The menu interface HL uses takes a user's choice, and this click becomes a subroutine. Into the subroutine, stick something like 'Find_Entity_By_Name' (examples are found in the Button code), and send it a command to trigger (also found in the Button code). Very simple.

-Angry Lawyer

NB: You can make an object trigger it, simply my making another entity open the menu. Really easy to do.
 
Back
Top