Menu
Lumberyard
Developer Guide (Version 1.11)

ScriptBind_GameToken

CryLua is deprecated and will be removed in a future version of Lumberyard.

Lists C++ game token functions that can be called from Lua script.

DumpAllTokens

Dump all game tokens with their values to the log.

Syntax

Copy
GameToken.DumpAllTokens()

GetToken

Gets the value of a game token.

Syntax

Copy
GameToken.GetToken(const char *sTokenName)

Parameter Description
sTokenName The name of the token whose value to get.

SetToken

Sets the value of a game token.

Syntax

Copy
GameToken.SetToken(const char* tokenName, any tokenValue)

Parameter Description
tokenName The name of the token.
tokenValue The value to set.