SetDirectAtTarget - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets or clears the target of the direct-at behavior modifier. This reference must have a behavior animation on it with a direct-at modifier to do anything.

Syntax[edit | edit source]

Function SetDirectAtTarget(ObjectReference akTarget) native

Parameters[edit | edit source]

  • akTarget: The ObjectReference to set as the target. If this is None, it will clear the target.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set spotlight to follow the can
SpotlightProperty.SetDirectAtTarget(CanProperty)

See Also[edit | edit source]