VoidExpanse/scope-chat

From AtomicTorchWiki
Revision as of 10:31, 18 February 2014 by Damonwall (talk | contribs) (→‎List of functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.