Difference between revisions of "Category:Global Callbacks"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: {{Infobox mapping}} Category:LuaCategory:Lua_Callbacks)
 
Line 1: Line 1:
 
{{Infobox mapping}}
 
{{Infobox mapping}}
[[Category:Lua]][[Category:Lua_Callbacks]]
+
These are Callbacks which are not connected with any game entity. Declare the function in your lua script, and the game will run it at the appropriate time.
 +
 
 +
==Example==
 +
<pre>
 +
function startup()
 +
-- set up team limits
 +
local team = GetTeam( Team.kBlue )
 +
team:SetPlayerLimit( 0 )
 +
 
 +
team = GetTeam( Team.kRed )
 +
team:SetPlayerLimit( 0 )
 +
 
 +
team = GetTeam( Team.kYellow )
 +
team:SetPlayerLimit( -1 )
 +
 
 +
team = GetTeam( Team.kGreen )
 +
team:SetPlayerLimit( -1 )
 +
end
 +
</pre>
 +
==A short list==
 +
*[[Lua:Effect-triggered callbacks]]
 +
*[[Lua:Flaginfo]]
 +
*[[Lua:Startup]]
 +
*[[Lua:Tick]]
 +
*[[Lua:ff miniturret]]
 +
*[[Lua:info ff script]]
 +
*[[Lua:player killed]]
 +
*[[Lua:player ondamage]]
 +
*[[Lua:player spawn]]
 +
*[[Lua:precache]]
 +
*[[Lua:validspawn]]
 +
*[[Player onkill]]
 +
*[[Player switchteam]]
 +
*[[Player throwgren1]]
 +
*[[Player throwgren2]]
 +
*[[Category:Lua]][[Category:Lua_Callbacks]]

Revision as of 23:01, 3 August 2009

Pages in category "Global Callbacks"

The following 3 pages are in this category, out of 3 total.