ChangeFaction(object, object)

Change a creature's faction to that of another.

void ChangeFaction(
    object oObjectToChangeFaction,
    object oMemberOfFactionToJoin
);

Parameters

oObjectToChangeFaction

The creature whose faction is to change.

oMemberOfFactionToJoin

The creature whose faction will be joined.


Description

Make oObjectToChangeFaction join the faction of oMemberOfFactionToJoin.



Remarks

Although placeables can be given factions, they cannot be used as oMemberOfFactionToJoin.

PCs cannot change factions.


Version

1.61

Example

// Used in an 'Actions Taken' conversation node when a PC
// has persuaded an NPC to join an interesting convent...
void main() {
  object oNun = GetNearestObjectByTag("sisterOfPerpetualIndulgence");
  ChangeFaction(OBJECT_SELF, oNun);
}

See Also

functions: ChangeToStandardFaction
categories: Reputation/Faction Functions


 author: Iskander Merriman, editor: Lilac Soul, additional contributor(s): Lilac Soul