Forums Gallery Downloads LOGIN |REGISTER

Energy system help

Please use this forum for questions on C++, Lua, XML, and any other languages used in CryENGINE development.


 

User avatar
taylorsnead
Just getting started
Just getting started
 
Posts: 81
Member since: 18.08.2011, 04:49
Location: New Orleans
Likes: 0

Re: Energy system help

Postby taylorsnead » 18.05.2012, 02:24

Oh, I see now. Try using IsSprinting() in place of m_actions&ACTION_SPRINT, and where did you put your subtraction line?
And at that, Albi cried a single tear which became a jellybean all colors of the rainbow!
Suddenly, Albi wasn't racist anymore.
So they sat in the cave; and ate bubblegum pie, YUM!
Albi the racist -- well, not anymore -- dragon!
User avatar
wanggogo
Developer
Developer
 
Posts: 208
Member since: 27.10.2008, 12:02
Location: CHINA
Likes: 2

Re: Energy system help

Postby wanggogo » 18.05.2012, 05:09

taylorsnead wrote:Oh, I see now. Try using IsSprinting() in place of m_actions&ACTION_SPRINT, and where did you put your subtraction line?


After I tested, IsSprinting() doesn't work in this case. Finally I put the code inside "if (IsClient())" to solve the problem.

03.jpg

Anyway, thank you very much taylorsnead. :cheesy:


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community