LlamaDom Posted June 25, 2021 Share Posted June 25, 2021 (edited) my SO and I are finishing up a character and need to do some tweaking! We wanted to make it so if the character eats monster meat, its hunger falls to a certaint percent (15%) or number (25). We got the eating monstermeat part, but we're having trouble with the setting hunger part. We've tried using inst.components.health, but that doesnt seem to work. any suggestions? Edited June 27, 2021 by LlamaDom Link to comment https://forums.kleientertainment.com/forums/topic/131191-solved-help-with-setting-health-for-character-after-action/ Share on other sites More sharing options...
zetake Posted June 25, 2021 Share Posted June 25, 2021 inst.components.hunger:SetPercent(.15) Link to comment https://forums.kleientertainment.com/forums/topic/131191-solved-help-with-setting-health-for-character-after-action/#findComment-1472670 Share on other sites More sharing options...
LlamaDom Posted June 25, 2021 Author Share Posted June 25, 2021 Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/131191-solved-help-with-setting-health-for-character-after-action/#findComment-1472679 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