PlaceObjectAtCrosshairLoc - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Move the specified markerRef at the crosshair location.

Syntax[edit | edit source]

Bool Function PlaceObjectAtCrosshairLoc(Actor akActor, ObjectReference markerRef, float fDistance, float fHeight, bool UseLeftRightOffsets, bool isLeft) global native

Examples[edit | edit source]

;move the RelevantMarkerRef at a distance of 1000.0 units, at a height of 96.0 units.
PlaceObjectAtCrosshairLoc(Game.GetPlayer(), RelevantMarkerRef, 1000.0, 96.0, false, false)

Parameters[edit | edit source]

  • akActor: The Actor, should be the player. (other actors may work but are not recommended.)
  • markerRef: the ObjectReference to move to the crosshair ref.
  • fDistance: the distance to place the marker at. (in units)
  • fHeight: the height offset, from the base of the actor. (in units)
  • UseLeftRightOffsets: whether you want to use the offsets for left and right hands. (if you don't know, leave it false.)
  • isLeft: whether you want to apply the offset value for left hand or not. Will need UseLeftRightOffsets to be true.

Return Value[edit | edit source]

Whether this function has been completed. (will almost always return true. Only for testing purposes.)

See Also[edit | edit source]