C4 Engine Terathon Software C4 Engine API Documentation

• Message Manager

API Links
Developer Links

MessageMgr::GetPlayerCount

Defined in:  C4Messages.h
Returns the current number of players connected to a multiplayer game.
Prototype

long GetPlayerCount(voidconst;

Description
The count returned by the GetPlayerCount function includes the server, the local machine, and all other clients connected to a multiplayer game.

The maximum number of players allowed in a game can be set with the MessageMgr::SetMaxPlayerCount function.
See Also
MessageMgr::GetMaxPlayerCount

MessageMgr::SetMaxPlayerCount