Difference between revisions of "ScriptEvent:chGetDistance"

From Mod Wiki
 
(No difference)

Latest revision as of 11:19, 5 November 2007

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.