MoveToReticle

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Moves the calling reference to the position pointed at by the reticle (crosshair).

  • If maxRange is passed, the reference will be moved to within a distance from the player that shall not exceed the value specified (10,000 by default; a higher value is not recommended).
  • If any of the three optional offsetX/Y/Z arguments is passed, similar to MoveTo, the reference will be moved to the specified offset from the reticle position.

Syntax

[help]
(success:0/1) reference.MoveToReticle maxRange:float offsetX:float offsetY:float offsetZ:float

Example

objectRef.MoveToReticle 4000
objectRef.MoveToReticle 8000 0 0 128 

See Also