Difference between revisions of "ScriptEvent:getCrosshairDistance"

From Mod Wiki
 
(No difference)

Latest revision as of 16:32, 5 November 2007

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.