SetPlayerTeammate

From the CreationKit Wiki
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)