Jump to content
  • Advertisement
Sign in to follow this  
wontaek

what's wrong with using luabind..

This topic is 4575 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

in my main thread. call lua-binded functions. using call_function(..)method in script file, also, call functions in animation whitch's in animation system. module(g_pLua) [ class_<CTRL::COutSystem>("COutSystem") .def("SetPosition",&CTRL::COutSystem::SetPosition) .def("SetDirection",&CTRL::COutSystem::SetDirection) .def("SetAction",&CTRL::COutSystem::SetAction) ] void CMyAgent::Update() { if(m_pConstTimer->Ready()) call_function<void> (g_pLua,m_pScriptStr,this,&gDAIAdaptor,m_bTeam==true? CPlugIn::GetPlugIn(0):CPlugIn::GetPlugIn(1)); } problem is... within 1 update of agent in main thread. 2 or more times of SetAction calls in script file happens.. :( what wrong am i thinking.. any replies would be appreciated.. thank you!!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by wontaek
problem is... within 1 update of agent in main thread. 2 or more times of SetAction calls in script file happens.. :(


I think the informations you gave aren't sufficient to solve the problem. If possible, pls give the declaration of the mentioned COutSystem & CPlugin methods and the lua script.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!