Background for Fallout 4
Member of the Actor script
voidfunctionAllowCompanion(boolMakeCompanionIfNoneCurrently=true, boolForceCompanion=false)

Description

Wiki Description

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


Parameters

  1. boolMakeCompanionIfNoneCurrently=true

    CK Wiki Description

    If the player has no companion, make this their current companion

    • Default:True
  2. boolForceCompanion=false

    CK Wiki Description

    Force this actor to be the current companion, dismissing any other

    • Default:False

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)

Auto-Generated Example

bool myBool__MakeCompanionIfNoneCurrently
bool myBool__ForceCompanion

myActor__toCallFunctionOn.AllowCompanion(myBool__MakeCompanionIfNoneCurrently, myBool__ForceCompanion)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.