FANDOM


The GetFirstFactionMember() and GetNextFactionMember() NWScript commands iterate through all members of a faction, possibly a faction that consists of a party of player characters and associates. As with the other GetFirst*() and GetNext*() pairs of commands, GetFirstFactionMember() is used to initialize the iterator while GetNextFactionMember() moves the iterator to the next item.

DefinitionEdit

object GetFirstFactionMember (object oMemberOfFaction, int bPCOnly=TRUE)

object GetNextFactionMember (object oMemberOfFaction, int bPCOnly=TRUE)

object oMemberOfFaction 
Any member of the faction whose members the iteration is to cycle through.
int bPCOnly 
If TRUE, the iteration will only return player characters; if FALSE it will return both player- and non-player characters.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.