Original Post
I am trying to extend my classes through scripting. I create my objects in Lua and then assign them a script. I can't find a way to load a script and connect it to that object, so in c++ I can call that objects scripted function. I can do it globally by loading the script into a table and then calling the function in that table. What I want to do is connect that table to the full userdata so each object can have it's own script, and can be easily called from c++.