AllowCompanion - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Tells this actor it is now allowed to be a companion.

Syntax[edit | edit source]

Function AllowCompanion(bool MakeCompanionIfNoneCurrently = true, bool ForceCompanion = false)

Parameters[edit | edit source]

  • 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 Value[edit | edit source]

None

Examples[edit | edit source]

; 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)

See Also[edit | edit source]