User Tools

Site Tools


4rpl:commands:getpointerterraincoords

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:getpointerterraincoords [2025/02/14 14:57] – external edit 127.0.0.14rpl:commands:getpointerterraincoords [2025/06/10 06:04] (current) – Failure case mentioned Vertu
Line 10: Line 10:
 :NOTE: The returned coordinates are floats, not integers. If you wish to use this API to obtain cell coordinates rather than world-space, use the [[4rpl:commands:ceil|Ceil]] operator to round into an integer.\\ :NOTE: The returned coordinates are floats, not integers. If you wish to use this API to obtain cell coordinates rather than world-space, use the [[4rpl:commands:ceil|Ceil]] operator to round into an integer.\\
 This API also works outside the map boundaries. This API also works outside the map boundaries.
 +
 +Should the API fail to find a result, such as the mouse being pointed into the sky, the resulting cells are -1.
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/getpointerterraincoords.txt · Last modified: 2025/06/10 06:04 by Vertu