Difference between revisions of "GET MOUSE POSITION"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=2 |p1t=Float |p1d=Handler for X coord |p2t=Float |p2d=Handler for Y coord }} This function gets position of game mouse(cursor) and returns it as X and Y coordina...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Native
 
{{Native
 
|np=2
 
|np=2
|p1t=Float
+
|p1t=Handler(float)
 
|p1d=Handler for X coord
 
|p1d=Handler for X coord
|p2t=Float
+
|p2t=Handler(float)
 
|p2d=Handler for Y coord
 
|p2d=Handler for Y coord
 
}}
 
}}
  
This function gets position of game mouse(cursor) and returns it as X and Y coordinates. This function tracks mouse ever if you are not in pause menu.
+
This function gets position of game mouse(cursor) and returns it as X and Y coordinates. This function tracks mouse even if you are not in pause menu.

Latest revision as of 00:05, 14 August 2020

GET_MOUSE_POSITION
Number of parameters: 2
Parameter #TypeDescription
1.Handler(float)Handler for X coord
2.Handler(float)Handler for Y coord
Return value:
TypeDescription
None

This function gets position of game mouse(cursor) and returns it as X and Y coordinates. This function tracks mouse even if you are not in pause menu.