Game variables access. Game variables are described in detail in Game Variables article.
inline getBool (id:String):Bool
Returns game variable value as Bool
.
Parameters:
id
Game variable name.
Returns:
Game variable value.
inline getDynamic (id:String):Dynamic
Returns game variable value as an anonymous object.
Parameters:
id
Game variable name.
Returns:
Game variable value.
inline getFloat (id:String):Float
Returns game variable value as Float
.
Parameters:
id
Game variable name.
Returns:
Game variable value. Returns 0.0 if the game variable does not exist.
Returns game variable value as Int
.
Parameters:
id
Game variable name.
Returns:
Game variable value. Returns 0 if the game variable does not exist.