red1500z Posted April 22, 2023 Share Posted April 22, 2023 I'm trying to build an armor that gives more max health to fix the biggest weakness of my custom character but I can't find or learn how to do it, does anyone have an idea? Link to comment https://forums.kleientertainment.com/forums/topic/147322-help-does-anyone-know-how-to-build-armor-that-increases-maximum-health/ Share on other sites More sharing options...
Chesed Posted April 22, 2023 Share Posted April 22, 2023 (edited) 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 April 22, 2023 by Chesed 1 Link to comment https://forums.kleientertainment.com/forums/topic/147322-help-does-anyone-know-how-to-build-armor-that-increases-maximum-health/#findComment-1631436 Share on other sites More sharing options...
red1500z Posted April 23, 2023 Author Share Posted April 23, 2023 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) 1 Link to comment https://forums.kleientertainment.com/forums/topic/147322-help-does-anyone-know-how-to-build-armor-that-increases-maximum-health/#findComment-1631455 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now