Advertisement

Haw to get table data out of LUA?

Started by April 28, 2003 08:27 AM
2 comments, last by davidkosenina 21 years, 6 months ago
Helo
  
--********************
--    Lua script
--********************
EnemyList = {

    Enemy1 = {
        path = ".\mesh\cube4.x",
        x = 0.0,
        y = 0.0,
        z = 0.0
    },

    Enemy2 = {
        path = ".\mesh\cube2.x",
        x = 10.0,
        y = 1.0,
        z = 0.0
    }
}
  
Q) Haw to get table data out via stack?
I don''t know the answer, but have you searched the Lua mailing lists?
---------------------http://www.stodge.net
Advertisement
Helo

Haw to get out table inside a table? For example if I would
like to read path?

Anybody?
read the manual. It''s all in there, in very clear language. You will be particularly interested in lua_gettable and lua_next.

How appropriate. You fight like a cow.

This topic is closed to new replies.

Advertisement