Mod:Creation Kit/SetDirectAtTarget - ObjectReference

Member of: Mod:Creation Kit/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
Function SetDirectAtTarget(ObjectReference akTarget) native

Parameters

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

Return Value
None.

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