PlaceObjectAtCrosshairLoc - ANDR PapyrusFunctions

Member of: ANDR_PapyrusFunctions Script

Move the specified markerRef at the crosshair location.

SyntaxEdit

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

ExamplesEdit

;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)

ParametersEdit

  • 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 ValueEdit

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

See AlsoEdit