crazygrouptrio
Active member
My game has a max health system that works fine, until the player dies and then it defaults the players health to what the health is set to in its object details, and assumes this is the player's max health.
So this is how it plays out: Player health in object details is set to 30. When player's health is increased to 60, it all works correctly until the player dies, and when he respawns his health is set to 30, and will not go up from health pickups because it thinks the max health is 30.. until the player takes damage, which fixes the system and then health can go up to 60. Obviously this is not ideal.
For the life of me I cannot find where this is handled in 4.15. I just need the player's health to always be determined on my maxhealth variable, and it does except in this one instance. Any help would be appreciated thanks!
So this is how it plays out: Player health in object details is set to 30. When player's health is increased to 60, it all works correctly until the player dies, and when he respawns his health is set to 30, and will not go up from health pickups because it thinks the max health is 30.. until the player takes damage, which fixes the system and then health can go up to 60. Obviously this is not ideal.
For the life of me I cannot find where this is handled in 4.15. I just need the player's health to always be determined on my maxhealth variable, and it does except in this one instance. Any help would be appreciated thanks!