This seems like a very straightforward question, but I haven't been able to turn up an answer. I am adding game objects to a table in Lua like this:
local lock = GameObject {
-- object values and methods
table.insert(objects, lock)
But despite a lot of google searching and reading through the Lua documentation, I cannot figure out how to reference these objects by their names. I think it's because there is a very specific syntax to do so. If anyone could help me out, I would greatly appreciate it. Thanks!