Jump to content

[Question]What's the meaning of this type please


Recommended Posts

For clicking i guess.

For example, onClientGUIClick triggers when you press the left, right, or middle mouse button, and the state will be "down" in this case.

If you press the left, obviously button will be equal to "left", if you press right, it will be "right", if you press the middle one (the scrollwheel) it will be "middle".

It also triggers, when you release the button, which makes the state variable "up".

With this, you will only trigger the event once, and you will only be able to click a button for example with the left click, instead of triggering it twice.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...