outputConsole
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This outputs the specified text string to the console window (accessed with F8 or ~ key). It can be specified as a message to certain player(s) or all players.
Note
visibleTo can also be a Team object, in this case, the text will be visible to all the players of that team.
Note
The serverside function has a limitation of 1000 characters for the text parameter. Anything beyond 1000 characters is trimmed away. This limitation does not apply to the clientside version.
Syntax
outputConsole ( )Code Examples
server
function message(player,command) if command == "public" then outputConsole("Public console message") else outputConsole("Private console message",player) endendaddCommandHandler("public",message)addCommandHandler("private",message)