ScriptEvent:getCrosshairDistance

From Mod Wiki
Revision as of 16:32, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.