Jump to content

  • Log In with Google      Sign In   
  • Create Account

Haw to get table data out of LUA?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1   Members   

122
Like
Likes
Like

Posted 28 April 2003 - 02:27 AM

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?

#2   Members   

144
Like
Likes
Like

Posted 28 April 2003 - 03:21 AM

I don''t know the answer, but have you searched the Lua mailing lists?

#3   Members   

122
Like
Likes
Like

Posted 28 April 2003 - 09:58 PM

Helo

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

Anybody?


#4   Senior Moderators   

1788
Like
Likes
Like

Posted 28 April 2003 - 10:04 PM

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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.