Jump to content

LUA iterating through objects


cocopino
 Share

Recommended Posts

Hi,

 

I have a model that I can drag inside the editor, this model has a script (model.lua)

How does one iterate through all instances of this model inside model.lua?

 

Thanks!

desktop: Quad core Q6600 + 4GB + ATI HD4890 + XP

laptop: Dual core T6400 + 4 GB + NVidia 9600M GT + Vista 32

Link to comment
Share on other sites

Thanks Aggror, but the total number of items always stays 10 using classnametable?

I searched for "classnametable" and found objecttable instead, this is working. Thanks for pointing me in the right direction!

desktop: Quad core Q6600 + 4GB + ATI HD4890 + XP

laptop: Dual core T6400 + 4 GB + NVidia 9600M GT + Vista 32

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...