Sign in to follow this  

[solved] Creating Lua functions on the fly.

This topic is 4094 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is is possible to create Lua functions without having to edit&recompile the C++ code ( i.e. another lua function that registers/enables the new function)? Thanks [Edited by - Calin on September 26, 2006 10:44:11 AM]

Share this post


Link to post
Share on other sites
Quote:
Original post by JHL
Your gonna have to be more specific do you mean register a c++ function so you can use it in lua then no there isn't.


I need a Lua function that I'd call from another Lua function. I just realized u don't have to register them for use inside lua.
Sorry I'm still confused about the whole Lua thing [smile].

Share this post


Link to post
Share on other sites
Embedding a scripting language in C++ is quite difficult to get your head around. When I first started to do it, I had to spend quite a while playing around with it to understand what behaviour was possible before I got round to doing anything useful.

Share this post


Link to post
Share on other sites

This topic is 4094 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this