Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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 davidkosenina   Members   -  Reputation: 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?

Sponsor:

#2 stodge   Members   -  Reputation: 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 davidkosenina   Members   -  Reputation: 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 Sneftel   Senior Moderators   -  Reputation: 1781

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.



PARTNERS