Original Post
I can do this in one of two ways... what do you guys think? So... i have a game object... which Lua or My C++ engine may manipulate things from position to "Attack and Move Orders" (Lua doing high level stuff obviously and C++ doing low level blah blah). I have one Lua Thread dedicated to AI. 1) The way I see it is that each Object will either pass itself to its AI script, and i have a wrapper that exposes all of the orders and everything via getters and setters. 2) Or I can have each Object create and manage its own table that is loaded before the script is run. On Completion I think I would have to read the table and set the stuff in my Object or something to that affect right? I personally like the idea 1). I'm using Luna and am in the process of exposing this stuff. Thanks.