IsCursorShowing
Jump to navigation
Jump to search
This function is used to determine whether or not a player's cursor is showing for 'click-events'.
Syntax
bool isCursorShowing ( player thePlayer )
Required Arguments
- thePlayer The player you want to check
Returns
Returns true if the player's cursor is showing for 'click-events'.
Example
This example shows the players cursor, then prints "success" if it was shown successfully.
thePlayer = getPlayerFromNick ( "Dave" ) -- grab the player named Dave if ( thePlayer ) then -- if we got him showCursor ( thePlayer, true ) -- make his cursor show if ( isCursorShowing ( thePlayer ) ) then -- did it show? outputChatBox ( "success" ) -- print "success" to the chat box end end
See Also