Background for Skyrim SE
Member of the Actor script
boolfunctionIsInFaction(FactionakFaction)Native

Description

Wiki Description

Returns whether this actor is a member of the specified faction or not.

Documentation Comment

Checks to see if this actor is a member of the specified faction


Caveats

CK Wiki - Notes

  • This function will return False for an Actor that has a rank of -1 despite being listed in the Faction.

Parameters

FactionakFaction

CK Wiki Description

The Faction to check.


Examples

; Is the guard in the rift faction?
if Guard.IsInFaction(RiftFaction)
  Debug.Trace("Guard is in the rift faction")
endIf

Auto-Generated Example

Faction myFaction__akFaction

bool returnedValue = myActor__toCallFunctionOn.IsInFaction(myFaction__akFaction)

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.