SameFaction

Revision as of 22:28, 13 December 2010 by imported>Bruneauinfo (Added an example.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.