General > Developers Corner

Health Regeneration , Jump Gravity , Run Speed

<< < (2/3) > >>

Schiaffino:
Thank's Mr.President For All Your Help :) Im Really Happy With That.

=D !

MrPresident:
Did all 3 scripts work like you wanted?

JamminR:
Doesn't the '0' in the timer create script make it run forever?
You'd only need to run this once. It would then go forever.
Run it again, and it would just start the originally created timer over again, perhaps at a different minute timeframe.

MrPresident:
You are correct Jam, but that is the intent. The timer is suppose to run that function every x seconds forever. that's how I choose to do the health regeneration.

no.. the timer is on the outside of the function. I could have put it on the inside and made the 0 a 1 and it would have accomplished the same idea only the function would have to be run at least once from an external source.

JamminR:
Thought so.
Problem is, not every new lua coder knows this.
One might write other code to run the function more than once by default, but that wouldn't be needed. :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version