Programming & Scripting

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

User avatar   Beginner BeginnerMember since: 18.08.2011, 04:49Posts: 81Location: New Orleans Likes: 0
 

 Post Topic: Re: Energy system help
PostPosted 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   Trainee TraineeMember since: 27.10.2008, 12:02Posts: 199Location: CHINA Likes: 2
 

 Post Topic: Re: Energy system help
PostPosted 18.05.2012, 05:09 
Quote by taylorsnead:
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: