Revision Difference
Global.MsgC#517379
<function name="MsgC" parent="Global" type="libraryfunc">
<description>Just like <page>Global.Msg</page>, except it can also print colored text, just like <page>chat.AddText</page>.</description>
<realm>Shared and Menu</realm>
<args>
<arg name="args" type="vararg">Values to print. If you put in a color, all text after that color will be printed in that color.</arg>
</args>
</function>
<example>
<description>Prints "Hello World!" in red to the console.</description>
<code>MsgC( Color( 255, 0, 0 ), "Hello World!" )</code>
<output></output>⤶
<output><image src="msgc_red_hello_world_2.png"/></output>⤶
</example>
<example>
<description>Shows the built in colors for server and client</description>
<code>
MsgC( Color( 137, 222, 255 ), "Default server color" )
MsgC( Color( 255, 222, 102 ), "Default client color" )
</code>
</example>