GetFirstFactionMember

GetFirstFactionMember and GetNextFactionMember are NWScript functions that can be used to iterate through all members of a faction, or a party of pc's and henchmen. As with the other GetFirst and GetNext combinations, GetFirstFactionMember is used to initialize the iterator at the start of an iteration while GetNextFactionMember moves the iterator to the next item.

Definition

 * object oMemberOfFaction:Any member of the faction whose members the iteration is to cycle through
 * int bPCOnly:Flag, if true the iteration will only return player characters, if false it will return both player and non-player characters.