Background for Starfield
Member of the ObjectReference script
voidfunctionMoveNear(ObjectReferenceakTarget, intpositionVal=0, intdistanceVal=0, intfacingVal=0)

Description

Documentation Comment

scornett
Convenience function that moves this ref near another ref, calculating an offset position for it based on the following enums:

positionVal, default=0

  • -2 = Random (0-6)
  • -1 = Dead ahead.
  • 0 = Tight forward arc. ("Half the distance to the outer targeting ring or less.")
  • 1 = Wide forward arc. ("Within the outer targeting ring.")
  • 2 = Behind you.
  • 3 = Above you.
  • 4 = Below you.
  • 5 = On your left/port.
  • 6 = On your right/starboard.

distanceVal, default=0

  • -3 = Random (2-4)
  • -2 = Random (0-4)
  • -1 = Very close. ("As close as possible without colliding.")
  • 0 = Close. ("Nearby, easily visible, at a good hailing distance.")
  • 1 = Short Range. ("Nearby, hailing looks reasonable, a good range for an ambush.")
  • 2 = Moderate Range. ("A good range for standard combat.")
  • 3 = Long Range. ("A smudge in the distance.")
  • 4 = Very Long Range. ("It's out there somewhere.")

facingVal, default=0

  • -3 = Totally at random.
  • -2 = Random (0-7)
  • -1 = Directly at you.
  • 0 = Towards you, small offset. ("Looking at you.")
  • 1 = Towards you, large offset. ("Looking in your general direction.")
  • 2 = Away from you, small offset.
  • 3 = Away from you, large offset.
  • 4 = Left/port side facing you.
  • 5 = Right/starboard side facing you.
  • 6 = Bottom facing you.
  • 7 = Top facing you.

Parameters

  1. ObjectReferenceakTarget

  2. intpositionVal=0

  3. intdistanceVal=0

  4. intfacingVal=0


Examples

Auto-Generated Example

ObjectReference myObjectReference__akTarget
int myInt__positionVal
int myInt__distanceVal
int myInt__facingVal

myObjectReference__toCallFunctionOn.MoveNear(myObjectReference__akTarget, myInt__positionVal, myInt__distanceVal, myInt__facingVal)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.