ScriptEvent:chGetDistance

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

Parameters

None.

Result

integer

Supported By

idEntity

Comments

  • This is only valid within the OnUpdateCrosshairInfo function, if called outside of this, the game will crash.
  • If there is no crosshair object the entire trace length will be returned.

Functionality

Returns the distance to the object under the crosshair.