OnConsoleInput
Jump to navigation
Jump to search
{{Welcome| desc=This function is called when something is typed into the [[ConnectNPC |console] and enter key is pressed.|
params=
( text )
text: The string that was typed in the console.
|
retvals=This function does not return any specific values.|
example=
function OnConsoleInput( text )
{
try
{
local script = compilestring( text );
script();
}catch(e)
{
print(e);
}
}
}}