Jump to content

Recommended Posts

Put this in the OnEquip

Quote

owner.components.health.maxhealth = (200)

owner.components.health:DoDelta(0)

Replace 200 with the number you want. (Or use a tuning value.)

Then put this in the OnUnequip

Quote

owner.components.health.maxhealth = (TUNING.NAME_HEALTH)
owner.components.health:DoDelta(0)

Replace "NAME" with your character's name in capitals.

I think that should make the max health increase when the armour is on and reduce it back to normal when it's taken off.

I'm only a beginner who happens to have a similar thing with my character, so I hope that helps!

Edited by Chesed
  • Like 1
4 hours ago, Chesed said:

Put this in the OnEquip

Replace 200 with the number you want. (Or use a tuning value.)

Then put this in the OnUnequip

Replace "NAME" with your character's name in capitals.

I think that should make the max health increase when the armour is on and reduce it back to normal when it's taken off.

I'm only a beginner who happens to have a similar thing with my character, so I hope that helps!

thanks, this had not occurred to me, I really appreciate it (it works perfectly)

  • Like 1

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
×
  • Create New...