SameFaction

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

SameFaction TargetActorID

Example:

if (player.SameFaction TargetActor.Ref == 1)

If both the player and the target actor share at least one faction in common the above example statement will be true.

Returns 1 if the calling actor is in the same faction as the target actor -- i.e. they are both members of at least one faction in common.