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:
| Name | Type | Description |
|---|---|---|
key | str | Setting 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:
| Name | Type | Description |
|---|---|---|
key | str | Setting key name |
val | str | New setting value |
GAME.SETTINGS.set("key", 100);