ScriptEvent:getCrosshairDistance

From Mod Wiki

Parameters

boolean needValidInfo -- If set, and there isn't a valid entity under the crosshair, the result will be 'infinity'.

Result

float

Supported By

idPlayer

Functionality

Returns the distance to the item under the crosshair.