From Fortress Forever Wiki
Jump to navigationJump to search
These are functions that can be applied to a team.
Usage
CFFTeam:function(parameters)
Example
POINTS_PER_CAPTURE = 10
local team = player:GetTeam() --returns a CFFTeam object, on which we can run team functions.
team:AddScore(POINTS_PER_CAPTURE)
Command |
Description
|
AddScore(int) |
Adds points to the team's score
|
GetNumPlayers() |
returns the number of plaers on the team
|
GetPlayer |
???
|
GetTeamId() |
returns the Team ID for this team
|
SetName(string) |
Sets the team's name? The global function SetTeamName( teamid, name ) also does this.
|
SetAllies( teamid ) |
Sets another team to be allied with this team.
|
SetClassLimit( classid, int ) |
Limits a class on this team. -1 means no limit.
|
SetPlayerLimit(int) |
Limits the number of players on the team? The global function SetPlayerLimit( teamid, int ) also does this.
|
See also Team Flags and Lua:Entity_typing#CFFTeam
|
This category currently contains no pages or media.