GetCrosshairRef
From GECK
A function added by the Fallout Script Extender.
Contents
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
(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
- GetCrosshairRefEx ignores activation range.
- ObjectUnderReticle
- CrosshairRefInList