Background for Fallout 4
Member of the Actor script
voidfunctionSetLookAt(ObjectReferenceakTarget, boolabPathingLookAt=false)Native

Description

Wiki Description

Forces this actor to look at the target. Optionally, will also cause them to set it as their pathing target as well, which means they will walk relative to it (backwards and facing it when walking away, for example).

Documentation Comment

Sets this actor's head tracking target, optionally forcing it as their pathing look-at target


Parameters

  1. ObjectReferenceakTarget

    CK Wiki Description

    The item the actor should look at.

  2. boolabPathingLookAt=false

    CK Wiki Description

    If true, the actor will face the target when pathing.

    • Default:False

Examples

; Force the stalker to watch the player
Stalker.SetLookAt(Game.GetPlayer())
; Force the stalker to watch the player, and continue looking at the player while pathing
Stalker.SetLookAt(Game.GetPlayer(), true)

Auto-Generated Example

ObjectReference myObjectReference__akTarget
bool myBool__abPathingLookAt

myActor__toCallFunctionOn.SetLookAt(myObjectReference__akTarget, myBool__abPathingLookAt)

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.