AllowCompanion - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

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

Syntax

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

Parameters

  • 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

None

Examples

; 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