GetCursorPosition

From Multi Theft Auto: Wiki
Revision as of 20:37, 29 November 2007 by Talidan (talk | contribs)
Jump to navigation Jump to search

This function gets the current position of the mouse cursor.

Syntax

int int float float float getCursorPosition ( )

Required Arguments

None

Returns

Returns 5 values: cursorX, cursorY, worldX, worldY, worldZ. The first two values are the 2D screen coordinates of the cursor in pixels, relative to the upper left corner. The 3 values that follow are the 3D world map coordinates that the cursor points at.

Example

This page lacks an example.

--add an example here

See Also