IsInFaction - Actor

From the Fallout4 CreationKit Wiki
Revision as of 10:41, 23 October 2016 by imported>Goggle (→‎Examples: Not about this function returning true instead of false under certain circumstances.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax

bool Function IsInFaction(Faction akFaction) native

Parameters

Return Value

Whether the actor is a member of the specified faction or not.

Examples

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

Notes

  • There's possibility this function will return true under certain circumstances where it should return false instead. See the GetFactionRank - Actor talk page

See Also