Difference between revisions of "Category:Utility functions"
From Fortress Forever Wiki
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 38: | Line 38: | ||
|- | |- | ||
| [[Lua:AreTeamsAllied|AreTeamsAllied]]( team1, team2 ) || Returns true if they are. | | [[Lua:AreTeamsAllied|AreTeamsAllied]]( team1, team2 ) || Returns true if they are. | ||
+ | |- | ||
+ | | [[Lua:GetEntitiesByName|GetEntitiesByName]](entname) || returns a Lua table containing the matching entities. | ||
|- | |- | ||
| [[Lua:NumPlayers|NumPlayers]]() || gets the number of players. | | [[Lua:NumPlayers|NumPlayers]]() || gets the number of players. | ||
+ | |- | ||
+ | | [[Lua:GetPlayers|GetPlayers]]() || returns a table (array) of all players on the server. | ||
|- | |- | ||
| [[Lua:GetConvar|GetConvar]]( cvar ) || returns the value of a [http://developer.valvesoftware.com/wiki/Console_Command_List console variable] on the server(cvar). | | [[Lua:GetConvar|GetConvar]]( cvar ) || returns the value of a [http://developer.valvesoftware.com/wiki/Console_Command_List console variable] on the server(cvar). | ||
+ | |- | ||
+ | | string [[Lua:GetGameDescription|GetGameDescription]] | ||
|- | |- | ||
! Server Effects !! | ! Server Effects !! |
Latest revision as of 16:42, 30 March 2015
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.