Category:Team functions

From Fortress Forever Wiki
Revision as of 13: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

Commands
Callbacks

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.