Archived

This topic is now archived and is closed to further replies.

davidkosenina

Haw to get table data out of LUA?

Recommended Posts

davidkosenina    122
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?

Share this post


Link to post
Share on other sites
Sneftel    1788
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.

Share this post


Link to post
Share on other sites