Category:Team functions

From Fortress Forever Wiki
Revision as of 14:56, 5 May 2010 by Crazycarl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.