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.
Definition[]
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.