Jump to content

[Help] How to Smoothly Restore Health ?


Perfect

Recommended Posts

Posted

Hi All, there is any way to store health smoothly ? by smoothly i mean like if we put water in glass, water filled the glass smoothly. I have 1 idea, i will set health to 1 then 2 then 3 then ... then 100. but it will take some time. there is any easy way to do it ? ( same thing like how we loss health when m4 or any other weapon hit us)

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

Posted
setTimer 
setElementHealth 

and

getElementHealth 

example:

setElementHealth ( getElementHealth(playerement) + 1 ) 

then repeat this step with the timer 100 for examle 100 times

so:

setTimer ( functionname, 50, 100 ) 

-- excecute the function 100 times in 50 miliseconds

Sometimes I dream about cheese

Posted

Awesome guys :D , thank you so much and happy new year. :)

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...