Need Help: Edit Player's HP

Started by Mr.Creeperman561 on Wed, 05/27/2015 - 23:24

Topic category: Advanced modding

Last seen on 21:56, 29. May 2015
Joined Feb 2014
User points:


  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Need Help: Edit Player's HP
Wed, 05/27/2015 - 23:24

I think I have the general idea on how to pull this off, but I need some help with execution. What I have:
variable called playerhealth starts as 20 (Player's starting health)
when something needs to edit player's hp, it changes the variable. My question is what code or thing do you need to do to set the player's HP to the variable playerhealth
If you see this, and know the answer, please respond!