Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
voidfunctionMoveRefToCrosshairLoc(ActorakActor, ObjectReferencemarkerRef, floatfDistance, floatfHeight, boolUseLeftRightOffsets=false, boolisLeft=false)NativeGlobal

Description

Wiki Description

Move the specified markerRef at the crosshair location.

Documentation String

  • akActor: The actor. This should be the player in almost all cases. (Any other actor might crash, so be careful!)
  • markerRef: the ref to move.
  • fDistance: the distance to place the marker at in units. (Values between 2000.0-4000.0 are recommended.)
  • fHeight: the height offset, from the base of the actor, in units. (Values between 90.0-100.0 are recommended.)
  • UseLeftRightOffsets: whether you want to use the offsets for left and right hands. (leave false if you're unsure.)
  • isLeft: whether you want to apply the offset value for left hand or not. Will need UseLeftRightOffsets to be true. (ignore if you're unsure.)

Parameters

  1. ActorakActor

    CK Wiki Description

    The Actor. This should be the player in almost all cases. (Any other actor might crash, so be careful!)

  2. ObjectReferencemarkerRef

    CK Wiki Description

    the ref to move.

  3. floatfDistance

    CK Wiki Description

    the distance to place the marker at in units. (Values between 2000.0-4000.0 are recommended.)

  4. floatfHeight

    CK Wiki Description

    the height offset, from the base of the actor, in units. (Values between 90.0-100.0 are recommended.)

  5. boolUseLeftRightOffsets=false

    CK Wiki Description

    whether you want to use the offsets for left and right hands. (leave false if you're unsure.)

  6. boolisLeft=false

    CK Wiki Description

    whether you want to apply the offset value for left hand or not. Will need UseLeftRightOffsets to be true. (ignore if you're unsure.)


Examples

;move the RelevantMarkerRef at a distance of 2000.0 units, at a height of 96.0 units.
MoveRefToCrosshairLoc(Game.GetPlayer(), RelevantMarkerRef, 2000.0, 96.0)

Auto-Generated Example

Actor myActor__akActor
ObjectReference myObjectReference__markerRef
float myFloat__fDistance
float myFloat__fHeight
bool myBool__UseLeftRightOffsets
bool myBool__isLeft

ANDR_PapyrusFunctions.MoveRefToCrosshairLoc(myActor__akActor, myObjectReference__markerRef, myFloat__fDistance, myFloat__fHeight, myBool__UseLeftRightOffsets, myBool__isLeft)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.