SetLookAt - Actor

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

SyntaxEdit

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

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

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

See AlsoEdit