ChangeFaction(object, object)

From NWN Lexicon
Revision as of 15:23, 24 December 2017 by Fp (talk | contribs)
Jump to: navigation, search

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.