MaxNrofPlayers Property

Usage:
   Game.MaxNrofPlayers number

Argument values:

argument 1:    range is 14 to 20; most commonly 16

This property is not a part of any defined type of object.

Used in a total of 40 .con files: Singleplayerallied.con, Singleplayeraxis.con

Parent directory of these .con files: Bf1942/Levels

Example: (from Bf1942/Levels/Bocage/SinglePlayerAxis.con)
   run singleplayer/ControlPointTemplates
   run singleplayer/SpawnpointManagerSettings
   run singleplayer/SoldierSpawnTemplates
   run singleplayer/SoldierSpawns
   run singleplayer/ObjectSpawnTemplates
   Game.SetNumberOfTickets 1 100
   Game.SetNumberOfTickets 2 100
   Game.SetTicketLostPerMin 1 15
   Game.SetTicketLostPerMin 2 15
   Game.MaxNrofPlayers 16
   if v_arg1 == host
   rem ----- Host
   rem ----------------------------------------------------------------------------
   run ai
   run SinglePlayer/ObjectSpawns
   run singleplayer/ControlPoints
   rem *** Always spawn immediatly in singleplayer missions!
   Game.TimeToNextWave 20


Go to the Game properties list page, Game page, All Properties list, or Main scripting page.