User Tools

Site Tools


4rpl:commands:getpointerterraincoords

This is an old revision of the document!


Index

GetPointerTerrainCoords

GetPointerTerrainCoords ->cellZ ->cellX

Description

Gets the map cell coordinates current pointed at by the game pointer (the mouse). A ray projection is done from the pointer through the 3D world and a collision is checked at each terrain height level. So this API will return the location on the map surface that the pointer is pointing towards.

Examples

ShowTerrainRangeIndicator(GetPointerTerrainCoords 10 false)

Index

4rpl/commands/getpointerterraincoords.1613235950.txt.gz · Last modified: 2021/02/13 12:05 by virgilw