- Found in:
- Andrealphus PE
voidfunctionMoveRefToCrosshairLoc(ActorakActor, ObjectReferencemarkerRef, floatfDistance, floatfHeight, boolUseLeftRightOffsets=false, boolisLeft=false)NativeGlobal
[DEV SERVER] Loading description...
Caveats
Parameters
ActorakActor
CK Wiki Description
The Actor. This should be the player in almost all cases. (Any other actor might crash, so be careful!)
floatfDistance
CK Wiki Description
the distance to place the marker at in units. (Values between 2000.0-4000.0 are recommended.)
floatfHeight
CK Wiki Description
the height offset, from the base of the actor, in units. (Values between 90.0-100.0 are recommended.)
boolUseLeftRightOffsets=false
CK Wiki Description
whether you want to use the offsets for left and right hands. (leave false if you're unsure.)
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)