Difference between revisions of "Category:Utility functions"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
m |
||
Line 50: | Line 50: | ||
| [[Lua:SetConvar|SetConvar]]( player, var, value ) || sets a players console variable to set value | | [[Lua:SetConvar|SetConvar]]( player, var, value ) || sets a players console variable to set value | ||
|- | |- | ||
− | | [[Lua:ApplyToAll|ApplyToAll]]( effect ) || | + | | [[Lua:ApplyToAll|ApplyToAll]]( effect ) || pass this a list of [[Lua:Flags#AT | AT flags]] to apply global effects to the server. |
|- | |- | ||
− | | [[Lua:ApplyToTeam|ApplyToTeam]]( effect, team ) || | + | | [[Lua:ApplyToTeam|ApplyToTeam]]( effect, team ) || pass this a team id and a list of [[Lua:Flags#AT | AT flags]] to apply effects to players on a team. |
|- | |- | ||
− | | [[Lua:ApplyToPlayer|ApplyToPlayer]]( effect, player ) || | + | | [[Lua:ApplyToPlayer|ApplyToPlayer]]( effect, player ) || pass this a player id and a list of [[Lua:Flags#AT | AT flags]] to apply effects to a player. |
|- | |- | ||
| [[Lua:HasGameStarted|HasGameStarted]]( ) || Returns false if the map is in prematch mode. | | [[Lua:HasGameStarted|HasGameStarted]]( ) || Returns false if the map is in prematch mode. | ||
Line 74: | Line 74: | ||
| [[Lua:SetTeamClassLimit|SetTeamClassLimit]]( team, class, limit ) || | | [[Lua:SetTeamClassLimit|SetTeamClassLimit]]( team, class, limit ) || | ||
|- | |- | ||
− | | [[Lua:SetTeamName|SetTeamName]]( team, name ) || | + | | [[Lua:SetTeamName|SetTeamName]]( team, name ) || Set a custom name for a team: appears on the scoreboard and team selection screen. |
|- | |- | ||
| [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | | [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | ||
|} | |} | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Revision as of 11:12, 5 May 2010
These global functions are useful for getting your scripts working.
|
Pages in category "Utility functions"
The following 7 pages are in this category, out of 7 total.