lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


How can I access tables within tables? My data is structured as so:
entity =
{
   s =
   {
       pos =
       {
           trType = 0,
           trTime = 0,
           trDuration = 0,
           trBase = {128, 128, 128}
           trDelta = {0, 0, 0}
       }
   },
   r =
   {
       currentOrigin = {256, 256, 256}
   }
}
I need to be able to access all of that data. Would I just repeatedly
call lua_pushstring with the new key and then call lua_gettable? What
about accessing the array data? Any help would be appreciated.

--
43rd Law Of Computing: Anything that can go wro

sig: segmentation fault: core dumped