SetLookAt - Actor

Revision as of 13:35, 11 April 2011 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Actor Script Forces this actor to look at the target. Optionally, will also cause them to set it as their pathin…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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