User Tools

Site Tools


4rpl:commands:getpointerterraincoords

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.txt · Last modified: 2021/02/13 12:05 by virgilw