ShowMouseCursor

From Liberty Unleashed Wiki
Revision as of 22:52, 2 August 2011 by Stormeus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sets the mouse cursor to show/hide

Syntax

  1. ShowMouseCursor( bool b )

Arguments

  • b - A boolean value stating if the mouse cursor should be shown

Example

This code shows the mouse when the player uses the command '/mouse'

  1.  
  2. function onClientCommand(cmd, text)
  3. {
  4. if(cmd == "mouse")
  5. {
  6. ShowMouseCursor( true );
  7. }
  8. }
  9.  

Notes

The event onClientCommand was used in this example. More information is available on the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox