Background for Fallout 4
Member of the Faction script
voidfunctionSetAlly(FactionakOther, boolabSelfIsFriendToOther=false, boolabOtherIsFriendToSelf=false)Native

Description

Wiki Description

Sets the two factions to be friend or allies of eachother.

Documentation Comment

Sets this faction and the other as allies or friends - if the friend booleans are true - the specified one-way relationship
is a friend instead of an ally


Caveats


Parameters

FactionakOther

CK Wiki Description

The Faction to form a relationship with.

boolabSelfIsFriendToOther=false

CK Wiki Description

If true, the faction this function is called on will be a friend to the other faction. If false, it will be an ally.

  • Default:False

boolabOtherIsFriendToSelf=false

CK Wiki Description

If true, the other faction will be a friend to this faction. If false, it will be an ally.

  • Default:False

Examples

; Make the two factions allies
Humans.SetAlly(Elves)
; Make the Humans and Dwarves simply friends
Humans.SetAlly(Dwarves, true, true)

Auto-Generated Example

Faction myFaction__akOther
bool myBool__abSelfIsFriendToOther
bool myBool__abOtherIsFriendToSelf

myFaction__toCallFunctionOn.SetAlly(myFaction__akOther, myBool__abSelfIsFriendToOther, myBool__abOtherIsFriendToSelf)

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.