ScarDoc

Start typing to search the SCAR reference.

Function
Team

Team_SetMaxPopulation

Sets the current personnel or vehicle cap for each player on a team. The captype is either CT_Personnel or CT_Vehicle (you can't adjust Medic caps just yet).

On this page
Team_SetMaxPopulation(team, captype, newcap)

Description

Note that any modifiers that adjust the current cap will be applied on top of this. Also note, the current cap cannot go higher than the max cap.

Parameters

  • teamTeamIDrequired
  • captypeIntegerrequired
  • newcapIntegerrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/team.scar