Hmm it looks like it might be what I need.
When I try to implement is my program crashes, I also can't find any good example on how to use it. The Lua Manual has very little info about it.
EDIT
Nope it didnt work.... sortof.
When I call this from my main class it does what it needs to do., But when move the EXACT code to my console class my programm crashes. There is only 1 pLuaM so It cant be that.
RunRegisteredFunction(pLuaM, "AddPntLight(0,0,10,true,false)");
//-----------------------------------------------------------------------------// Name: RunRegisteredFunction()// Desc: //-----------------------------------------------------------------------------void RunRegisteredFunction(lua_State *pLua, string sFunction){ lua_dobuffer(pLua, sFunction.c_str(), strlen(sFunction.c_str()), "BUFFER");}
[Edited by - D3DXVECTOR3 on July 28, 2004 9:18:32 AM]