SetLookAt - Actor
Jump to navigation
Jump to search
Member of: 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[edit | edit source]
Function SetLookAt(ObjectReference akTarget, bool abPathingLookAt = false) native
Parameters[edit | edit source]
- akTarget: The item the actor should look at.
- abPathingLookAt: If true, the actor will face the target when pathing.
- Default: False
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; 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)