Difference between revisions of "Category:Global Callbacks"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
m |
||
Line 19: | Line 19: | ||
end | end | ||
</pre> | </pre> | ||
+ | ==Entity Outputs== | ||
+ | The lua system can catch any entity output from [[http://developer.valvesoftware.com/wiki/User_Inputs_and_Outputs Source's I/O system]] and run lua code. For example, func_breakable:onbreak() can be used to detect when an item breaks. | ||
==A short list== | ==A short list== | ||
*[[Lua:Effect-triggered callbacks]] | *[[Lua:Effect-triggered callbacks]] |
Revision as of 23:31, 15 February 2010
|
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
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
Entity Outputs
The lua system can catch any entity output from [Source's I/O system] and run lua code. For example, func_breakable:onbreak() can be used to detect when an item breaks.
A short list
Pages in category "Global Callbacks"
The following 3 pages are in this category, out of 3 total.