Squirrel/Client/Functions/Messages/ConsoleMessage
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|ConsoleMessage}} This function sends a console message to the player running the client script only. == Syntax == <code>ConsoleMessage( string text )</code>...") |
Revision as of 22:19, 16 August 2015
This function sends a console message to the player running the client script only.
Syntax
ConsoleMessage( string text )
Arguments
- text - This is the message to send to the player
Example
This will send messages saying 'Testing... when a client script is loaded.
function onScriptLoad( ) { ConsoleMessage( "Testing..." ); return 1; }
Notes
The call onScriptLoad was used in in this example. More info about this in the corresponding page.