Difference between revisions of "Category:Team functions"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: These are functions that can be applied to a team. ===Usage=== CFFTeam:''function''(''parameters'') ===Example=== <pre>POINTS_PER_CAPTURE = 10 local team = player:GetTeam() --returns a C...)
 
Line 9: Line 9:
 
team:AddScore(POINTS_PER_CAPTURE)</pre>
 
team:AddScore(POINTS_PER_CAPTURE)</pre>
  
AddScore  
+
*AddScore  
GetNumPlayers
+
*GetNumPlayers
GetPlayer
+
*GetPlayer
GetTeamId
+
*GetTeamId
SetName  
+
*SetName  
SetAllies  
+
*SetAllies  
SetClassLimit
+
*SetClassLimit
SetPlayerLimit
+
*SetPlayerLimit
  
 
See also [[Lua:Flags#Team|Team Flags]]
 
See also [[Lua:Flags#Team|Team Flags]]
 
[[Category:Lua]]
 
[[Category:Lua]]
 
[[Category:Lua_Commands]]
 
[[Category:Lua_Commands]]

Revision as of 08:55, 12 May 2009

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)
  • AddScore
  • GetNumPlayers
  • GetPlayer
  • GetTeamId
  • SetName
  • SetAllies
  • SetClassLimit
  • SetPlayerLimit

See also Team Flags

This category currently contains no pages or media.