Background for Starfield
Member of the ObjectReference script
voidfunctionSetDirectAtTarget(ObjectReferenceakTarget)Native

Description

Wiki Description

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.

Documentation Comment

Sets the direct-at target for this reference (or clears it if None is passed)
Note that the object must have an animation graph with a direct-at modifier on it for this to do anything


Parameters

  1. ObjectReferenceakTarget

    CK Wiki Description

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


Examples

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

Auto-Generated Example

ObjectReference myObjectReference__akTarget

myObjectReference__toCallFunctionOn.SetDirectAtTarget(myObjectReference__akTarget)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.