Team
Team represents one side in a match. It cannot be constructed directly. Other APIs return it, including DefusalGame.BridgerFrontTeam and DefusalGame.KillScriptCompanyTeam.
The server match mode calculates score, economy loss streak, and used timeouts. Team only lets Lua read current server state or its replicated client copy; assignment is not a command to change score.
local attackers = DefusalGame.BridgerFrontTeam
print("Rounds: " .. tostring(attackers.RoundWins))print("Loss streak: " .. tostring(attackers.EconomyLossCount))The API is available in both client Lua and a Reflex server.lua.
Properties
Section titled “Properties”| Property | Type | Access | Description |
|---|---|---|---|
EconomyLossCount |
int |
get |
Current consecutive economy losses. |
RoundWins |
int |
get |
Rounds won by the team. |
TimeoutsTaken |
int |
get |
Timeouts used by the team. |
All three properties are read-only. Assigning to them ends the Lua call with an access error.
Defusal sides
Section titled “Defusal sides”local attackers = DefusalGame.BridgerFrontTeamlocal defenders = DefusalGame.KillScriptCompanyTeam
print( tostring(attackers.RoundWins) .. " : " .. tostring(defenders.RoundWins))BridgerFrontTeam and KillScriptCompanyTeam refer to game sides, not necessarily a permanent set of players. Teams swap sides during the match.