SetDirectAtTarget - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 16:36, 4 October 2013 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Sets or clears the target of the direct-at behavior modifier. This reference must have a ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]