Team
A team is a group which may contain zero or more players.
There are eight global team variables, numbered from 0 to 7, which can
be accessed as global.team[n]
.
This type contains nested variables. There are 8 nested numbers, 6 nested objects, 4 nested players, 4 nested teams, and 4 nested timers available.
Properties
- score
The team's current score.
- script_stat[n]
The value of a scripted Post-Game Carnage Report stat for this player.
Member conditions
- has_alliance_status
Check this team's relationship with another team.
- has_any_players
Check whether a team still has players on it.
Member actions
- get_scoreboard_pos
Get a team's position on the scoreboard.
- set_co_op_spawning
Control whether a team uses co-op spawning.
- set_primary_respawn_object
This function appears to set a team's default respawn object, when co-op spawning is enabled.
- set_respawn_vehicle
MCC-exclusive: Automatically spawn players inside of vehicles, without having to manually create vehicles and force players into them.
- set_vehicle_spawning_enabled
MCC-exclusive: Although intended to let you control whether players spawn in vehicles or not, this function doesn't appear to actually do anything.