MousePick()
Syntax
Result = MousePick(#Camera, x, y)Description
Simulates a mouse click and returns which object is under the specified 2D point (x,y - in pixels) on the specified #Camera. The returned value can be:-1 : Nothing has been detected #PB_World_WaterPick: the click occured on the water. #PB_World_TerrainPick: the click occured on a terrain. 0 and above: the click occured on the #Entity. The entity pick is based on its bounding box, not on its mesh.To get more information about the picked object position, use PickX(), PickY() and PickZ().
Supported OS
All