onClientClickButton

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player clicks a button.

Syntax

  1. function onClientClickButton( button )

Arguments

  • button - The pointer of the button clicked

Example

This code will hide a button after it has been pressed.

  1.  
  2. function onClientClickButton( button )
  3. {
  4. button.Visible = false;
  5. }
  6.  

Notes

This example uses the GUIButton.Visible function. More info on its corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox