Background for Skyrim SE
Member of the Faction script
voidfunctionSetReaction(FactionakOther, intaiNewValue)Native

Description

Wiki Description

Sets the faction's reaction towards the other one.

Documentation Comment

Sets this faction's reaction towards the other


Caveats

CK Wiki - Notes

  • This is best used in conjunction with Actor.AddToFaction(...) as members of factions that oppose the PlayerFaction may have a high Aggression level, and you must use this function and set the value to 3 for making them friends.

Parameters

FactionakOther

CK Wiki Description

The Faction to set the reaction towards.

intaiNewValue

CK Wiki Description

The value to set the reaction to.


Examples

; Set the Orcs' faction reaction to the Elves
Orcs.SetReaction(Elves, -50)

Auto-Generated Example

Faction myFaction__akOther
int myInt__aiNewValue

myFaction__toCallFunctionOn.SetReaction(myFaction__akOther, myInt__aiNewValue)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.