Difference between revisions of "Lua:SetTeamPlayerLimit"
From Fortress Forever Wiki
Jump to navigationJump to searchm (LUA:SetTeamPlayerLimit moved to SetTeamPlayerLimit: LUA: prefix not needed.) |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Infobox manual/Header}} | ||
==SetTeamPlayerLimit== | ==SetTeamPlayerLimit== | ||
| Line 22: | Line 23: | ||
</pre> | </pre> | ||
| − | [[Category: | + | [[Category:Lua_Commands]] |
| + | {{Infobox manual/Footer}} | ||
Latest revision as of 16:41, 31 December 2007
|
SetTeamPlayerLimitSetTeamPlayerLimit is used to set what teams are allowed. It must be placed in your map's startup() function and gets passed 2 parameters: SetTeamPlayerLimit( team, limit ) team - team to set limits on limit - allowed or not (0 = allowed, -1 = not allowed) In this example, we will make red and blue be the only allowed teams: Example .LUA startup() functionfunction startup()
-- set up team limits (only red & blue)
SetTeamPlayerLimit( BLUE_TEAM, 0 )
SetTeamPlayerLimit( RED_TEAM, 0 )
SetTeamPlayerLimit( YELLOW_TEAM, -1 )
SetTeamPlayerLimit( GREEN_TEAM, -1 )
end
|