MoveRefToCrosshairLoc - ANDR PapyrusFunctions
Jump to navigation
Jump to search
Member of: ANDR_PapyrusFunctions Script
Move the specified markerRef at the crosshair location.
Syntax
Function MoveRefToCrosshairLoc(Actor akActor, ObjectReference markerRef, float fDistance, float fHeight, bool UseLeftRightOffsets = false, bool isLeft = false) global nativeExamples
;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)Parameters
- 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.)