SetPlayerTeammate

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.

SyntaxEdit

RefName.SetPlayerTeammate 1/0

ExampleEdit

BobREF.SetPlayerTeammate 1

See AlsoEdit

Papyrus VersionEdit

Actor.SetPlayerTeammate (Papyrus)