Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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