Back to TPG

TPG.GetEnemyTeam

S🏷️ Teams

Part of TPG namespace

TPG.GetEnemyTeam(teamId)
View on GitHub|gamemode/config/sh_teams.lua:88-92
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

The opposing playing team. TEAM_UNASSIGNED for anything else (spectators included; there is no "enemy" of a team that isn't playing).

Parameters

NameTypeDescription
teamIdnumberTEAM_GREEN or TEAM_RED.

Returns

TypeDescription
numberTEAM_RED for TEAM_GREEN, TEAM_GREEN for TEAM_RED, and

Examples

No examples available.

Used In

No usages found in the codebase.