This command adds the target to the faction with the specified ID as either an ally or a friend.
addtofaction [faction id] [friend / ally] Target Command
|Faction ID||The ID of the faction you wish to add the target to.|
|Friend / Ally||Specify 0 to add as a friend, specify 1 to add as an ally.|
ff0044532.AddToFaction 001f6113 0
The above command adds the NPC with reference ID ff0044532 to the faction with faction ID 001f6113. Because we specified a 0 at the end of the command, the NPC is added as a friend (specify 1 for ally).