Difference between revisions of "Lua:SetTeamName"
From Fortress Forever Wiki
Jump to navigationJump to searchm (Misnamed item) |
|||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Infobox manual/Header}} | ||
==SetTeamName== | ==SetTeamName== | ||
| − | + | SetTeamName is used to set the name of a team in game (instead of just "Red Team", or "Blue Team"). It must be placed in your map's startup() function and gets passed 2 parameters: | |
<pre>SetTeamName( team, name )</pre> | <pre>SetTeamName( team, name )</pre> | ||
| Line 19: | Line 20: | ||
</pre> | </pre> | ||
| − | [[Category: | + | [[Category:Lua_Commands]] |
| + | {{Infobox manual/Footer}} | ||
Latest revision as of 16:41, 31 December 2007
|
SetTeamNameSetTeamName is used to set the name of a team in game (instead of just "Red Team", or "Blue Team"). It must be placed in your map's startup() function and gets passed 2 parameters: SetTeamName( team, name ) team - team to set limits on name - [a string] the name of the team (like "Attackers") In this example, we will make red team be called "Flag Hoppers": Example .LUA startup() functionfunction startup()
-- Make red team's name be "Flag Hoppers"
SetTeamName( RED_TEAM, "Flag Hoppers" )
end
|