• Advertisement

Archived

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

Haw to get table data out of LUA?

This topic is 5380 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
I don''t know the answer, but have you searched the Lua mailing lists?

Share this post


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

  • Advertisement