Jump to content
  • Advertisement
Sign in to follow this  
Calin

[solved] Creating Lua functions on the fly.

This topic is 4288 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
Advertisement
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.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!