GetNextPC
From NWN Lexicon
Contents |
[edit] GetNextPC()
Obtains the next PC in the player list.
[edit] Description
Returns the next PC in the player list where the last GetFirstPC() or GetNextPC() left off and OBJECT_INVALID if there are no more PCs.
[edit] Remarks
You must call GetFirstPC before using this function.
[edit] Version
1.22
[edit] Example
// This function cycles through all PCs and counts how many there are main() { int nPCs = 0; object oPC = GetFirstPC(); while (GetIsObjectValid(oPC) == TRUE) { nPCs = nPCs+1; // nPCs++; oPC = GetNextPC(); } }
[edit] See Also
functions: |
author: Tom Cassiotis