Difference between revisions of "Category:Utility functions"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
m |
||
Line 2: | Line 2: | ||
{{Infobox mapping}} | {{Infobox mapping}} | ||
These global functions are useful for getting your scripts working. | These global functions are useful for getting your scripts working. | ||
− | {| border="1" cellspacing="2" cellpadding=" | + | {| border="1" cellspacing="2" cellpadding="2" |
! General Technical Functions !! Description | ! General Technical Functions !! Description | ||
|- | |- | ||
Line 22: | Line 22: | ||
|- | |- | ||
| [[Lua:OutputEvent|OutputEvent]]( entity, input, parameter, delay, x ) || Triggers any named entity in the map using Source's [http://developer.valvesoftware.com/wiki/Inputs_and_Outputs#Inputs I/O system]. | | [[Lua:OutputEvent|OutputEvent]]( entity, input, parameter, delay, x ) || Triggers any named entity in the map using Source's [http://developer.valvesoftware.com/wiki/Inputs_and_Outputs#Inputs I/O system]. | ||
+ | |- | ||
+ | | [[Lua:SetConvar|SetConvar]]( player, var, value ) || sets a player's [http://developer.valvesoftware.com/wiki/Console_Command_List console variable] to a specified value. | ||
|- | |- | ||
! Player information !! | ! Player information !! | ||
Line 33: | Line 35: | ||
! Server Info !! | ! Server Info !! | ||
|- | |- | ||
− | | [[Lua:GetServerTime|GetServerTime]]() || | + | | float [[Lua:GetServerTime|GetServerTime]]() || Returns the number of seconds the map has been running. |
|- | |- | ||
| [[Lua:AreTeamsAllied|AreTeamsAllied]]( team1, team2 ) || Returns true if they are. | | [[Lua:AreTeamsAllied|AreTeamsAllied]]( team1, team2 ) || Returns true if they are. | ||
Line 39: | Line 41: | ||
| [[Lua:NumPlayers|NumPlayers]]() || gets the number of players. | | [[Lua:NumPlayers|NumPlayers]]() || gets the number of players. | ||
|- | |- | ||
− | | [[Lua:GetConvar|GetConvar]]( cvar ) || returns the value of a 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). |
|- | |- | ||
! Server Effects !! | ! Server Effects !! | ||
Line 54: | Line 56: | ||
| [[Lua:ResetMap|ResetMap]]() || resets map. | | [[Lua:ResetMap|ResetMap]]() || resets map. | ||
|- | |- | ||
− | | [[Lua: | + | | [[Lua:set_cvar|set_cvar]](cvar, value) || Sets a [http://developer.valvesoftware.com/wiki/Console_Command_List console variable] on the server |
|- | |- | ||
| [[Lua:ApplyToAll|ApplyToAll]]( effect ) || pass this a list of [[Lua:Flags#AT | AT flags]] to apply global effects to the server. | | [[Lua:ApplyToAll|ApplyToAll]]( effect ) || pass this a list of [[Lua:Flags#AT | AT flags]] to apply global effects to the server. |
Revision as of 14:24, 7 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.