it seems to only return the world light color, 215
it seems only the last pushed number is effectively pushed
try
a,b = getWorldLight() and a is 215 and b is nil
the same way, t = {getWorldLight()} gives #t = 1, t = {215}
Code:
int32_t LuaScriptInterface::luaGetWorldLight(lua_State* L)
{
//getWorldLight()
LightInfo lightInfo;
g_game.getWorldLightInfo(lightInfo);
lua_pushnumber(L, lightInfo.level);
lua_pushnumber(L, lightInfo.color);
return 1;
}
it seems only the last pushed number is effectively pushed
try
a,b = getWorldLight() and a is 215 and b is nil
the same way, t = {getWorldLight()} gives #t = 1, t = {215}