Mod:Creation Kit/SetLookAt - Actor

Member of: Mod:Creation Kit/Actor Script

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).

Syntax
Function SetLookAt(ObjectReference akTarget, bool abPathingLookAt = false) native

Parameters

 * akTarget: The item the actor should look at.
 * abPathingLookAt: If true, the actor will face the target when pathing.
 * Default: False

Return Value
None.

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