Birdman Posted April 26, 2011 Share Posted April 26, 2011 I asked this before, but all my posts are deleted!!!! What were the lines to initialize lua scripts objects from c++, and to run for an instance FPSController.lua. Thanks a lot in advance. Quote Link to comment Share on other sites More sharing options...
Birdman Posted May 3, 2011 Author Share Posted May 3, 2011 Does anybody remeber how to do this? Quote Link to comment Share on other sites More sharing options...
Birdman Posted May 14, 2011 Author Share Posted May 14, 2011 Mmm.. What about commented functions like LoadScript, RunScript, etc? I have Setup LUA OK, but idk how to run a script in my code TFramework fw = CreateFramework(); SetGlobalObject("fw",fw); BP lua = GetLuaState(); lua_pushobject(lua,fw); lua_setglobal(lua,"fw"); lua_pop(lua,1); Quote Link to comment Share on other sites More sharing options...
Laurens Posted May 14, 2011 Share Posted May 14, 2011 You mean someone answered this? I would surely like to know how because as far as I know, you need to include the Lua headers in your application and pass them the state Leadwerks maintains. Last time I checked, there was no built-in command for it. Quote Link to comment Share on other sites More sharing options...
Birdman Posted May 26, 2011 Author Share Posted May 26, 2011 Yeah i think ZioRed answered this, anyway, i have a working LUA for a driving example code, and i have an exe that have joystick implemented, and i cant put em together to work. Is something simple, but working with leadwerks seems to be far from simple. What i need is an engine.exe with joystick implemented, my other option is what im finishing now, recoding all my LUA script in c++ becouse im not getting support. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.