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

[DEV SERVER] Loading description...


Caveats


Parameters

ObjectReferenceakTarget

CK Wiki Description

The item the actor should look at.

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.