Zeyn Posted March 10, 2015 Share Posted March 10, 2015 Hello everybody, I would like to make a really simple mod for DT/ROG (and i will probably make it for DST too) that just divide the maxhealth of the character by 3, whatever the character's choice. The mod will be call Frail ! I have tried to use the Health:SetMaxHealth function located on data/scripts/components/health.lua file in my modmain.lua file but i have failed. I would really appreciate a little peace of advice/help. Link to comment https://forums.kleientertainment.com/forums/topic/51921-a-mod-that-change-the-maxhealth-of-the-player/ Share on other sites More sharing options...
Kzisor Posted March 10, 2015 Share Posted March 10, 2015 (edited) @Zeyn, it should work exactly as followed. AddPlayerPostInit(function(inst) inst.components.health:SetMaxHealth(inst.components.health.maxhealth / 3) return inst end) Edited March 10, 2015 by Kzisor Link to comment https://forums.kleientertainment.com/forums/topic/51921-a-mod-that-change-the-maxhealth-of-the-player/#findComment-620618 Share on other sites More sharing options...
Zeyn Posted March 10, 2015 Author Share Posted March 10, 2015 It works !! Thanks a lot Kzisor ! Link to comment https://forums.kleientertainment.com/forums/topic/51921-a-mod-that-change-the-maxhealth-of-the-player/#findComment-620619 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