SetCompanion - Actor
Member of: Actor Script
Sets/clears this actor as the current companion.
SyntaxEdit
Function SetCompanion(bool SetCompanion = true, FillCompanionAlias = true)
ParametersEdit
- 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 ValueEdit
None
ExamplesEdit
; Set dogmeat as the companion
Dogmeat.SetCompanion()
; Remove Valentine as companion
Valentine.SetCompanion(false)