Original Post
hi, i'm using lua to do some scripting and have a simple question. first, i have entities that behave differently, each has their own corrosponding lua script. now, my question... do i load each script with it's own lua_State *, or do I use lua_dofile(script) every frame for each differenty entity, using the same lua_State *? My inclination is to have multiple lua_State *'s, but then they each need their own ctor/dtor code. So I was wondering what is the best approach for running multiple entities (each with own script) from lua. thanks