TerrainMousePick()

Syntax

Result = TerrainMousePick(#Terrain, CameraID, x, y)
Description
Simulates a mouse click on the terrain under the specified 2D point (x,y - in pixels) on the specified camera.

Parameters

#Terrain The terrain to use.
CameraID The camera to use. To get a valid camera id, use CameraID().
x, y The position (in pixels) in the camera view of the point.

Return value

If the terrain has been hit by the simulated mouse click, it will return #True, else it will return #False. To get information about the pick position, use PickX(), PickY() and PickZ().

See Also

CreateTerrain(), CreateCamera()

Supported OS

All

<- TerrainLocate() - Terrain Index - TerrainRenderMode() ->