This command adds your currently targeted NPC to the specified faction. Specify the rank -1 to remove the targeted NPC from the specified faction.
addtofaction [faction id] [rank] Target Command
Faction ID | The ID of the faction you wish to add (or remove) your target from. |
Rank | The target's rank in the faction - a number (e.g. 0 for the lowest possible rank). Specify -1 to remove the target from the faction. |
AddToFaction 43599 0
Forsworn has a faction ID of 43599. This command would add your current target to the Forsworn faction at the lowest possible rank.
player.AddToFaction 43599 0
Although similar to the first example, as this command is prefixed with 'player.', your player would be added to the Forsworn faction (rather than your target).
AddToFaction 43599 -1
The above command would remove your target from the faction with ID 43599 (Forsworn).