Mod:Creation Kit/SetCompanion - Actor

Member of: Mod:Creation Kit/Actor Script

Sets/clears this actor as the current companion.

Syntax
Function SetCompanion(bool SetCompanion = true, FillCompanionAlias = true)

Parameters

 * SetCompanion: Whether to set or clear this actor as a companion
 * Default: True
 * FillCompanionAlias: Whether to fill the alias with this actor (should almost always be true)
 * Default: True

Return Value
None

Examples
Dogmeat.SetCompanion Valentine.SetCompanion(false)
 * Set dogmeat as the companion
 * Remove Valentine as companion