IsConsoleActive
This function was added in DSL 1
Description
Checks if the console is currently opened.
tip
Primarily intended for scripts to be able to limit certain inputs when the console is in focus.
function IsConsoleActive() --[[ ... ]] end
Parameters
None.
Return Values
active
:boolean
- Returnstrue
if the console is currently opened, otherwisefalse
.
Example
if IsConsoleActive() then
print('The console is currently active.')
else
print('The console is not active.')
end