SetMaxPlayer

Category: Player
Since engine version: 4.9.1.0 GWE

Description

Adjusts the maximum number of players that can take part in the current round. Lowering this value will not eliminate active players. This value only affects the limit for joining players.

Syntax

bool SetMaxPlayer (int iNewCount);

Parameter

iNewCount:
New maximum player count

Example

protected func Script100() { return(SetMaxPlayer()); }
Part of a scenario script: after a little while, no more players can join.
See also: GetPlayerCount
Sven2, Juni 2003