GetCrosshairRef

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the reference under the crosshair - i.e., the reference that would be activated if the player pressed the Activate button. Will return non-activatable items (like tables and trees) as long as they are within activation distance. Otherwise returns zero.

Ignores objects with no collision.

Syntax

[help]
(ref) GetCrosshairRef 

Notes

  • If the crosshair ref is Cell Water, this function returns an invalid temporary reference.
  • The IActivatePickLength gamesetting controls from which distance the player can activate a reference.

See also