SetPlayerTeammate

From the CreationKit Wiki
Revision as of 14:31, 11 November 2011 by imported>Scornett-Bot (Script running global find and replace: Category:Console Commands for Category:Console Functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Changes the Actor's behavior to simulate being a combat teammate of the player. Once an NPC becomes a teammate:

  • The Actor will generally become an ally of the player, irrespective of other faction relationships.
    • If this function is called in mid-combat, it may not work reliably.
  • The Actor will sneak if the player sneaks, stop sneaking if the player stops sneaking.
  • The Actor will draw a weapon if the player draws a weapon.
  • Crimes committed by the NPC are considered crimes the player has committed.

Syntax[edit | edit source]

RefName.SetPlayerTeammate 1/0

Example[edit | edit source]

BobREF.SetPlayerTeammate 1

See Also[edit | edit source]

Papyrus Version[edit | edit source]

Actor.SetPlayerTeammate (Papyrus)