VoidExpanse/scope-chat: Difference between revisions

From AtomicTorchWiki
(Created page with "<noinclude> Category:VoidExpanse/api_scopes </noinclude> = Scope chat = Used to control chat messages. '''Visibility:''' Global. == List of functions == {{Scripting_ap...")
 
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
{{Scripting_api|SendToPlayer|
{{Scripting_api|SendToPlayer|
* string: player_to
* string: player_to
* string: player_from
* ''(optional) string: player_from''
* string: message|
* string: message|
void |
void |
<pre style="margin:0px;">chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha");</pre> |
<pre style="margin:0px;">
Sends message to specified player.
chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha");
}}
chat.SendToPlayer("somePlayer", "Mwahahahaha");
 
</pre> |
{{Scripting_api|SendToPlayer|
* string: player_to
* string: message|
void |
<pre style="margin:0px;">chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha");</pre> |
Sends message to specified player.
Sends message to specified player.
}}
}}

Latest revision as of 10:31, 18 February 2014


Scope chat

Used to control chat messages.

Visibility: Global.

List of functions

SendToAll
Arguments Returns Example
  • string: player_from
  • string: message

void

chat.SendToAll("dlirry", "Mwahahahaha");
Description

Sends message to all connected players.


SendToPlayer
Arguments Returns Example
  • string: player_to
  • (optional) string: player_from
  • string: message

void

chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha");
chat.SendToPlayer("somePlayer", "Mwahahahaha");
Description

Sends message to specified player.