int aw_console_message (int session_id) |
|
Displays an arbitrary text message in the chat history window (console) of a user. Callback None (returns immediately) Notes This method is new in SDK build 24 and requires a version 3.3 or later world server. aw_console_message displays a text message, in any color, in the console window of the user identified by session_id. The text message can be of any form, and is not prefaced with a "name:" prefix by the browser as normal chat messages are. The text of the message is specified in the attribute AW_CONSOLE_MESSAGE. The color of the message is specified by the attributes AW_CONSOLE_RED, AW_CONSOLE_GREEN and AW_CONSOLE_BLUE. Additionally, the style of the console message can be set using the AW_CONSOLE_BOLD and AW_CONSOLE_ITALICS attributes. To send a single console message to all users in the world, pass zero for session_id. All users running 3.3 or later browsers will see the message, regardless of their current distance from the bot. Only instances owned by a caretaker (i.e. aw_int (AW_WORLD_CARETAKER_CAPABILITY) returns TRUE) may send console messages to other users. See Also |