IsMouseCursorShowing

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

This function returns whether or not the mouse cursor is showing.

Syntax

  1. bool IsMouseCursorShowing()

Arguments

  • none

Example

This code will tell the player if the mouse is showing when they use the '/mouse' command.

  1.  
  2. function onClientCommand( cmd, text )
  3. {
  4. if(cmd == "mouse")
  5. {
  6. if(IsMouseShowing()) Message("The mouse is showing.");
  7. else Message("The mouse is not showing.");
  8. }
  9. }
  10.  

Notes

The event onClientCommand and function Message were used in this example. More information can be found in their corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox