Category:Team functions

From Fortress Forever Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Mapping for FF
The Basics

Setting up Hammer
Getting Started With Lua
Releasing a map

FF-specific Entities

Lua location system

Map Templates
FF Lua Documentation

Entity Typing
Entity Collections


These are functions that can be applied to a team.




local team = player:GetTeam() --returns a CFFTeam object, on which we can run team functions.
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.