VoidExpanse/scope-server

From AtomicTorchWiki
Revision as of 04:09, 13 February 2014 by Atomic-admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Scope server

Used to get access to a specific script-related functions.

Visibility: Global.

List of functions

GetAllPlayers
Arguments Returns Example

void

array of strings

var obj = server.GetAllPlayers();
Description

Returns an array of names of all players registered on server.


GetConnectedPlayers
Arguments Returns Example

void

array of strings

var obj = server.GetConnectedPlayers();
Description

Returns an array of names of all players, which are currently connected to the game server.


IsPlayerExists
Arguments Returns Example

string: name

bool

var obj = server.IsPlayerExists("dlirry");
Description

Returns whether specified player exists.


IsPlayerOnline
Arguments Returns Example

string: name

bool

var obj = server.IsPlayerOnline("dlirry");
Description

Returns whether specified player is online.