VoidExpanse/scope-server

From AtomicTorchWiki


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.