GetMousePosition (Harvest)
From OxeyeWiki
(Difference between revisions)
166 MMX (Talk | contribs)
(Created page with '{{HarvestMethod | screenX, screenY = getMousePosition() | Returns the current mouse position, in screen coordinates. | | Returns two coordinates of a point on the screen, sc...')
Newer edit →
(Created page with '{{HarvestMethod | screenX, screenY = getMousePosition() | Returns the current mouse position, in screen coordinates. | | Returns two coordinates of a point on the screen, sc...')
Newer edit →
Revision as of 23:09, 1 December 2009
|
screenX, screenY = getMousePosition() | ||
|
Returns the current mouse position, in screen coordinates. | ||
| Parameter | Expected Type | Description |
| Returns | ||
|
Returns two coordinates of a point on the screen, screenX and screenY. Both are of the type Number. | ||
Example
local mouseX, mouseY = harvest.getMousePosition() local x,y = harvest.screenToWorldCoordinates(mouseX, mouseY) harvest.spawnChargeBomb(x, y)