SetPlayerTeammate

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Changes the actor's behavior to simulate being a combat teammate of the player. The actor will act and react as if he is in the player faction for the purposes of combat. Other actors will treat the actor as is he were in the player faction. The teammate will imitate the player's sneak state. An actor in the teammate state can be activated in combat.

Syntax

[help]
[actor:ref].SetPlayerTeammate teammateFlag:int{0/1}

Example

BobREF.SetPlayerTeammate 1 

Notes

  • Increments the player teammate count.
  • Teammate state is cleared on death of the actor and player teammate count is decremented.
  • Changing cells will teleport the teammate to the player
  • Enables OpenTeammateContainer even with the parameter = 1
  • Enables the Companion Wheel (New Vegas)
  • Displays a map marker in the Pip-Boy for the teammate (New Vegas)
  • Essential flagged teammates are not essential in Hardcore (New Vegas)

See Also