ScarDoc

Start typing to search the SCAR reference.

Function
Team

Team_SetMaxCapPopulation

Sets the current personnel or vehicle max-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_SetMaxCapPopulation(team, captype, newcap)

Description

Note that any modifiers that adjust the current max cap will be applied on top of this. Also note, this is only adjusting the max cap, not the current cap, you will have to call Team_SetMaxPopulation to adjust the current max population to do this.

Parameters

  • teamTeamIDrequired
  • captypeIntegerrequired
  • newcapIntegerrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/team.scar