SETTINGS

Game settings access.

Availability: Client & Server

Methods


SETTINGS.get

client server

Get the current value of a game setting

Signature: str action(str)

Parameters:

NameTypeDescription
keystrSetting key name

Returns: str - The setting value

str  = GAME.SETTINGS.get("key");

SETTINGS.list

client server

Get a list of all modifiable setting keys

Signature: str action()

Returns: str - Array of setting key names

str items = GAME.SETTINGS.list();

SETTINGS.set

client server

Set a game setting value

Signature: action(str, str)

Parameters:

NameTypeDescription
keystrSetting key name
valstrNew setting value
GAME.SETTINGS.set("key", 100);