Kenneth Nyström Posted January 13, 2019 Share Posted January 13, 2019 Q: Is there a way to call a C++ script from a Lua script? and if that is possible; how does one call a Lua script from within a C++ script? ................................ Any pointers appreciated im thinking; if that I can at the end of a level, have LUA script ask for a C++ script that triggers a Steam Achivement and after that either calls the desired in game map or if nedded restart the entire game (this is a viable option for me; but not desirable if avoidable) Quote Link to comment Share on other sites More sharing options...
Rick Posted January 13, 2019 Share Posted January 13, 2019 Why are you thinking you need to do C++ to do those 2 things? You should be able to do that in lua itself. Nevermind I guess achievement code is only in C++ Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 13, 2019 Share Posted January 13, 2019 Have you looked at this? https://www.leadwerks.com/community/topic/13308-development-with-c-and-lua-on-linux/ 1 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.