OnClientCursorMove: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


__NOTOC__  
__NOTOC__  
This event is blahblah and is used for blahblah.
This event is called by the root element whenever the cursor is moved over the screen, by the player. It returns information about the world coordinates as well as the screen coordinates of where the player moved the cursor.
 
The difference between this event and [[onClientMouseMove]], is that the latter is actually called by GUI elements. This is to prevent double calling of onClientCursorMove, as onClientCursorMove is always called.


==Syntax==  
==Syntax==  

Revision as of 15:26, 15 June 2007


This event is called by the root element whenever the cursor is moved over the screen, by the player. It returns information about the world coordinates as well as the screen coordinates of where the player moved the cursor.

The difference between this event and onClientMouseMove, is that the latter is actually called by GUI elements. This is to prevent double calling of onClientCursorMove, as onClientCursorMove is always called.

Syntax

void onClientCursorMove ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ )

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo