🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

A question about Lua

Started by
2 comments, last by Chocoboko 21 years ago
Hi, I have a question about Lua. I am using it for scripting in an engine I am programming in C++. Is there any way to make Lua pause during it''s processing and wait for a certain command to begin again? If you''d know, please let me know. Thank you.
Advertisement
Well, from my experiences with Lua, scripts can be loaded into memory and allowed to sit.

For instance.. I wrote a program that created windows and buttons (with click functions) that used Lua.

Button functions were written in Lua, and thus only called when a button was clicked.

Could always allow your engine users to write C stub functions that could call the defined LUA functions..

*shrugs* Im probably way off topic anyway =P


edit: typo :/

[edited by - Maega on June 28, 2003 1:23:03 AM]
There''s a thread here in the scripting forum about this.
Hint: Lua 5 plus coroutines will help you out.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Time to move this...

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

This topic is closed to new replies.

Advertisement