Mod:Creation Kit/SetPlayerTeammate - Actor

Member of: Mod:Creation Kit/Actor Script

Flags this actor as a teammate of the player or not.

Syntax
Function SetPlayerTeammate(bool abTeammate = true, bool abCanDoFavor = true, bool abGivePlayerXP = false) native

Parameters

 * abTeammate: Whether to set or clear the actor's teammate status.
 * Default: True
 * abCanDoFavor: Whether to set or clear the actor's ability to do favors when he is the players teammate.
 * Default: True
 * abGivePlayerXP: Set this to true if you want this actor to give the player some experience points when another actor is killed or he is commanded to unlock something.
 * Default: False

Return Value
None.

Examples
Buddy.SetPlayerTeammate Buddy.SetPlayerTeammate(false)
 * Set Buddy as a teammate
 * Clear buddy's teammate status