ff_i_dm
DM utility functions.
Helpers for DM players.
-
int GetDMCount()
Get the count of players who are DMs.
Source code
// @code
// -----------------------------------------------------------------------------
//! @brief Get the count of players who are DMs
int GetDMCount();
int GetDMCount()
{
int nCount = 0;
object oPC = GetFirstPC();
while (GetIsObjectValid(oPC))
{
if (GetIsDM(oPC))
nCount += 1;
oPC = GetNextPC();
}
return nCount;
}