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=" | + | {| border="1" cellspacing="2" cellpadding="5" |
! General Technical Functions !! Description | ! General Technical Functions !! Description | ||
+ | |- | ||
+ | | [[Lua:IncludeScript|IncludeScript]](string) || This function loads the contents of another lua file, located in FortresForever\maps\includes. | ||
|- | |- | ||
| [[Lua:ConsoleToAll|ConsoleToAll]]( message ) || sends a message to server console. Inaccurately named--players will not see this. | | [[Lua:ConsoleToAll|ConsoleToAll]]( message ) || sends a message to server console. Inaccurately named--players will not see this. | ||
Line 18: | Line 20: | ||
|- | |- | ||
| [[Lua:RemoveEntity|RemoveEntity]]( ent_id ) || removes entity. | | [[Lua:RemoveEntity|RemoveEntity]]( ent_id ) || removes entity. | ||
+ | |- | ||
+ | | [[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]. | ||
|- | |- | ||
! Player information !! | ! Player information !! | ||
Line 34: | Line 38: | ||
|- | |- | ||
| [[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). | ||
|- | |- | ||
! Server Effects !! | ! Server Effects !! | ||
Line 57: | Line 63: | ||
|- | |- | ||
| [[Lua:HasGameStarted|HasGameStarted]]( ) || Returns false if the map is in prematch mode. | | [[Lua:HasGameStarted|HasGameStarted]]( ) || Returns false if the map is in prematch mode. | ||
− | |||
− | |||
|- | |- | ||
! Game Rules !! | ! Game Rules !! | ||
Line 78: | Line 82: | ||
| [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | | [[Lua:SetTeamPlayerLimit|SetTeamPlayerLimit]]( team, limit ) || | ||
|} | |} | ||
+ | [[Category:Lua]] | ||
+ | [[Category:Lua_Commands]] | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Revision as of 13:32, 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.