How to approach this?
I have seen the blog post on tables, read lua manuals, seen other forum posts and nothing has worked for me.
I want to create an object, and insert that object into a table not with a numerical index but with a named index.
I should be able to do this…
thecubeTable = {}
runALoop…
local thecube = mynewobject
assign physics, etc.
increment newName…
insert into table…
thecubeTable[newName] = thecube
or supposedly…
thecubeTable.newName = thecube
Neither one populates for me. I can provide additional information as to what I’m specifically doing if required. Just weary of banging my head against the wall.
[import]uid: 42417 topic_id: 16593 reply_id: 316593[/import]