Background for Fallout 4
Member of the Actor script
voidfunctionSetCompanion(boolSetCompanion=true, boolFillCompanionAlias=true)

Description

Wiki Description

Sets/clears this actor as the current companion.


Caveats


Parameters

boolSetCompanion=true

CK Wiki Description

Whether to set or clear this actor as a companion

  • Default:True

boolFillCompanionAlias=true

CK Wiki Description

Whether to fill the alias with this actor (should almost always be true)

  • Default:True

Examples

; Set dogmeat as the companion
Dogmeat.SetCompanion()
; Remove Valentine as companion
Valentine.SetCompanion(false)

Auto-Generated Example

bool myBool__SetCompanion
bool myBool__FillCompanionAlias

myActor__toCallFunctionOn.SetCompanion(myBool__SetCompanion, myBool__FillCompanionAlias)

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.