Background for Fallout 4
Member of the Faction script
voidfunctionSetEnemy(FactionakOther, boolabSelfIsNeutralToOther=false, boolabOtherIsNeutralToSelf=false)Native

Description

Wiki Description

Sets the two factions to be neutral or enemies of each other.

Documentation Comment

Sets this faction and the other as enemies or neutral - if the friend booleans are true - the specified one-way relationship
is a neutral instead of an enemy


Caveats


Parameters

FactionakOther

CK Wiki Description

The Faction to form a relationship with.

boolabSelfIsNeutralToOther=false

CK Wiki Description

If true, the faction this function is called on will be neutral to the other faction. If false, it will be an enemy.

  • Default:False

boolabOtherIsNeutralToSelf=false

CK Wiki Description

If true, the other faction will be neutral to this faction. If false, it will be an enemy.

  • Default:False

Examples

; Make the two factions enemies
Orcs.SetEnemy(Elves)
; Make the Orcs and Goblins simply neutral to eachother
Orcs.SetEnemy(Goblins, true, true)

Auto-Generated Example

Faction myFaction__akOther
bool myBool__abSelfIsNeutralToOther
bool myBool__abOtherIsNeutralToSelf

myFaction__toCallFunctionOn.SetEnemy(myFaction__akOther, myBool__abSelfIsNeutralToOther, myBool__abOtherIsNeutralToSelf)

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.