Background for Skyrim SE
Member of the Actor script
voidfunctionSetFactionRank(FactionakFaction, intaiRank)Native

Description

Wiki Description

Sets this actor's rank in the specified faction. Adds the actor to the faction if necessary.

Documentation Comment

Sets this actor's rank with the specified faction


Caveats


Parameters

FactionakFaction

CK Wiki Description

The Faction to set this actor's rank in.

intaiRank

CK Wiki Description

The rank in the faction the actor should be ( valid range is -128 to 127 )


Examples

; Set the empire faction rank for Luke to 0
Luke.SetFactionRank(EmpireFaction, 0)

Auto-Generated Example

Faction myFaction__akFaction
int myInt__aiRank

myActor__toCallFunctionOn.SetFactionRank(myFaction__akFaction, myInt__aiRank)

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.