OnClientConsole: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Category:Incomplete Event]] | [[Category:Incomplete Event]] | ||
{{Client event}} | |||
__NOTOC__ | __NOTOC__ | ||
This event is | This event is triggered when the local player enters text in the console. Note that, if you want to add custom console commands, it is easier to the [[addCommandHandler]] function. | ||
== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string text | |||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''text:''' the text line that was entered. | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 16:58, 30 December 2007
This event is triggered when the local player enters text in the console. Note that, if you want to add custom console commands, it is easier to the addCommandHandler function.
Parameters
string text
- text: the text line that was entered.