AllowCompanion - Actor
Member of: Actor Script
Tells this actor it is now allowed to be a companion.
SyntaxEdit
Function AllowCompanion(bool MakeCompanionIfNoneCurrently = true, bool ForceCompanion = false)
ParametersEdit
- MakeCompanionIfNoneCurrently: If the player has no companion, make this their current companion
- Default: True
- ForceCompanion: Force this actor to be the current companion, dismissing any other
- Default: False
Return ValueEdit
None
ExamplesEdit
; Allow dogmeat to be a companion, setting him to be your companion if you don't have any
Dogmeat.AllowCompanion()
; Force Danse to be your companion
Danse.AllowCompanion(ForceCompanion = true)