WriteConsole

From Soldat Community Wiki
Revision as of 19:52, 23 August 2012 by Shoozza (talk | contribs) (Created page with "===From the Scripting Manual=== ''procedure WriteConsole(ID: byte; Text: string; Colour: longint);'' '''Parameter Info:''' ID (Byte): Player ID to write text to. Set to ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

procedure WriteConsole(ID: byte; Text: string; Colour: longint);

Parameter Info:
 ID (Byte): Player ID to write text to. Set to 0 to write to all players!
 Text (String): Text to be written to the console. Will be prefixed with ' [*] ' to prevent exploiting.
 Colour (Longint): Colour the text should be when drawn to the console.

Description:
 This function will add text to the players(ID) console. Note that all message are prefixed with '   [*] ' to prevent scripters from spoofing other console messages.
 Set ID to 0 to write the text to ALL Players in the server!

Examples

begin
    WriteConsole(0,'Pickled Onions are nice!',$EE81FAA1);
    // Will draw: " [*] Pickled Onions are nice!" to ALL players consoles.
    // $EE81FAA1 is the colour, in AA RR GG BB format. (Alpha, Red, Green,Blue);
end;


External Links