Squirrel/Client/Functions/Messages/ConsoleMessage

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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>...")
 
(Related Functions)
Line 29: Line 29:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Client/Functions/ConsoleMessage}}
+
{{Squirrel/Client/Functions/Messages}}

Revision as of 22:20, 16 August 2015

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sends a console message to the player running the client script only.

Syntax

  1. 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.

  1.  
  2.  
  3. function onScriptLoad( )
  4. {
  5. ConsoleMessage( "Testing..." );
  6. return 1;
  7. }
  8.  

Notes

The call onScriptLoad was used in in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox