• Getting max health
    2 replies, posted
Hey, when I'm trying to set up a med kit to heal up to the players max health it only heals up to 100 and not the actual max health I have set. I'm not sure why this is happening and would like some assistance. Thanks.
Just use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/GetMaxHealth]Entity:GetMaxHealth[/url] instead of 100 (I'm guessing the code uses 100 somewhere which isn't actually the max)
Nope, I'm using GetMaxHealth. I have found the problem tho, with the jobs I'm setting their health but not their max health. Fixed don't worry.
Sorry, you need to Log In to post a reply to this thread.